| Class Trees |
DebugLocated in: Program_Root/Debug.php
Class for outputting debug info.
Example:
// enable debug to be outputted
Debug::on();
// set debug level to output debug message with filename and line name
Debug::level(DEBUG_OUTPUT_FILENAME | DEBUG_OUTPUT_LINE);
// print debug info (optional filename (__FILE__) and line number (__LINE__) can be passed)
Debug::debug('debug text here', __FILE__, __LINE__);
// suppress output of further debug() calls
Debug::off();
// no output will be produced
Debug::debug('testing');
default0.1Keyvan Minoukadeh <keyvan@k1m.com> bool |
is_on ( )
Is on - returns true if debuggin is on, false otherwise |
void |
debug ( $text, [$file = ''], [$line = ''] )
Debug - output debug info |
int |
level ( [$new_level = null] )
Level - set or get debug level |
void |
off ( )
Off - turn debugging off |
void |
on ( )
On - turn debugging on |
bool is_on ( ) |
Is on - returns true if debuggin is on, false otherwise
|
void debug ( $text, [$file = ''], [$line = ''] ) |
Debug - output debug info
|
int level ( [$new_level = null] ) |
Level - set or get debug level
|
void off ( ) |
Off - turn debugging off
|
void on ( ) |
On - turn debugging on
|