Class | Description |
---|---|
![]() |
The debugger class. Responsible for accumulating, filtering and then |
Everything. Warning, this can be VERBOSE!
Show site authentication output
Ad-hoc debugging output
DEBUG and DIAGNOSTICS as default setting
Diagnostic output
Dump HTTP and PHP page vars
No debugging (redundant)
Ubiquitous output mode
Output for CLI: echoed raw ASCII, LF end-of-line
Default output mode (stored)
Output via direct echo
Output to system log
To logfile (not implemented yet)
No output
Output stored in $content
Show debugging profiler output
SQL queries to database
SQL SELECT data from database
Show table borders and validation checks
Provide debug traceback info
Dummy value
Add content to debug content Adds the string content to the debugger output. This is done in raw fashion without any
or linefeed chars appended.
The output will then appear as per the output settings.
Add content to debug content with
Adds the string content to the debugger output and appends
to it. This is intended for output to HTML pages.
Return debugger status Function for external routines to determine whether debugging is enabled or not..
Set debugging class(es) Sets the class or classes (OR'ed together) of debug output which will be accepted/rendered on ouput.
Add string to debug content as hexdump
Add string content to output as a hexdump. This is for string data only. use this when you want to see 'inside' a string variable and view the characters as hexadecimal highlighted according to hex range. Chars are highlighted as follows: ASCII value = 32 (Spaces) ......... Blue ASCII values < 32 (Control chars) .. Red ASCII values > 127 ................. Green
Set debugging on Sets the debugging on. Sets class(es) to accept.
Set debugger output mode This function allows setting of the debugger output mode which determines where output goes.
Insert an entry into the profiler. This label will have a line in the profile output against the time elapsed since the last line.
Returns true if the RESPONSE is in profiling mode
Render the debug output as a string.
Normally debug output is taken care of by the system, however you might need to get hold of the output for some reason, and this is the function to do it.
DEBUG TRACEBACK Usage: In your function you bracket the statements you want to label for tracing as in the following example..
function thing() { debug_trace("mymodule"); // pushes "mymodule" on trace stack ...blah blah // program statements debug_trace(); // pops current trace off trace stack } NOTE: You can also use the object identifier for a class instead of a simple string like "mymodule". For example: function thing() { debug_trace($this); // pushes name of object class on trace stack ...blah blah // program statements debug_trace(); // pops current trace off trace stack }
Display a variable nicely Variables might be other than simple scalars. This function is used internally by the debugger to make sure we show them off in their best light.
Documentation generated by phpDocumentor 1.3.0RC3