TLDebug Class Reference

Additional debugging routines. More...

List of all members.

Static Public Member Functions

static backtraceString ($relative=True)
 Return a backtrace of all visited functions/classes as a single string where each function/method is on a new line. Example output:.
static backtraceSingleLine ($relative=True)
 Return a backtrace of all visited functions/classes as a single, one-lined string. Example output:.
static startPedantic ()
 Set some PHP configuration options so that all errors and warnings will be shown and will be fatal.


Detailed Description

Additional debugging routines.

This class contains additional convenience debugging routines.

Definition at line 637 of file tlib.php.


Member Function Documentation

static TLDebug::backtraceSingleLine ( relative = True  )  [static]

Return a backtrace of all visited functions/classes as a single, one-lined string. Example output:.

 test/debug.php:11 Test::foo(15, abc, Array(1, 2, Array)); test/debug.php:18 Test->bar(); test/debug.php:22 go(); 
 
Parameters:
$relative (Boolean) If true (default), filenames will be shortened by making them relative to the document root.
Returns:
(string) A on-lined string including file, line, function/methodname and parameter info of each function called on the stack.

Definition at line 713 of file tlib.php.

References backtraceString().

static TLDebug::backtraceString ( relative = True  )  [static]

Return a backtrace of all visited functions/classes as a single string where each function/method is on a new line. Example output:.

 test/debug.php:11 Test::foo(15, abc, Array(1, 2, Array))
 test/debug.php:18 Test->bar()
 test/debug.php:22 go()
 
Parameters:
$relative (Boolean) If true (default), filenames will be shortened by making them relative to the document root.
Returns:
(string) A string with each function/methode call on a new line, including file, line, function/methodname and parameter info.

Definition at line 650 of file tlib.php.

Referenced by backtraceSingleLine().


The documentation for this class was generated from the following file:
Generated on Sun Sep 24 22:05:25 2006 for TLib-PHP by  doxygen 1.4.7