 | Debugging With the Phrasebook Classes
- If the value of the environment is "COLOR", then the output would be with colors. The colors come from the Term::ANSIColor module.
- If the value is "HTML" then the output would be HTML code that generates a similar colorful representation.
Imagine that you need to see what are the SQL statements that are generated from a certain piece of code. Setting the PHRASEBOOK_SQL_DEBUG_PRINTS environment variable within that code will do the trick in no time. This feature can help not only in debugging, but also in the optimization of SQL code. |