The debugger class. Responsible for accumulating, filtering and then
rendering debug content to various outputs. This class is automatically instantiated by the system as $RESPONSE->debugger; and is used by various modules (eg. query) to log information. It can also be used as either an ad-hoc debugging aid, or as an analysis tool where debug output statements are inserted into code and left there permanently, their output only switched on when problems arise. Various classes of debug output can be enabled in any combination by OR'ing the following constants when the debug_on() function is called: DBG_DEBUG Ad-hoc debugging output DBG_DIAGNOSTIC Diagnostic output DBG_SQL SQL queries to database DBG_SQLDATA SQL SELECT data from database DBG_DUMP Dump HTTP and PHP page vars DBG_TRACE Provide debug traceback info DBG_TABLES Show table borders and validate cells DBG_PROFILES Show process profiling information DBG_AUTH Authentication messages DBG_DEFAULT DEBUG and DIAGNOSTICS only DBG_ALL Everything (verbose!) eg. debug_on(DBG_SQL | DBG_DIAGNOSTIC | DBG_DUMP);
Located in /debugger.php (line 101)
RenderableObject | --webdebugger
Accumulated debugging output content
Classes of debugging to accumulate
Status of the debugger
Modes of output for debugging content
Profiler data array
Microtimer object for profiling
Array of traced locations
Depth of tracing
Constructor
Set debug class(es) to accept
Return whether we have any content, true or false.
Set debug mode
Set debug output to be enabled(default)/disabled
Set debug output mode
This function starts/stops the debugger from echoing the content directly as well as storing it for a subsequent display by webpage-defs.php. The values which can be OR'ed together are as follows: DBG_O_NONE No output DBG_O_STORED Output stored in $content DBG_O_ECHO Output via direct echo DBG_O_CLI Output for CLI: echoed tag-stripped ASCII, LF end-of-line DBG_O_LOG Output to system log DBG_O_LOGFILE To logfile (not implemented yet) DBG_O_DEFAULT Default output mode (echoed) DBG_O_ALL Ubiquitous output mode
Set debug output mode Register content for debugging output. Check that it is of an acceptable class and direct it all to the right place(s).
Use render() to render the debugger output.
Renders the debugger output content as HTML.
Profile breakpoint.
Profiling allows you to ascertain the elapsed time between two breakpoints. To do this just call this method twice with the same label.
Send debug output to a file.
Traceback list Return a string of the form "label->label->label" forming the traceback level labels in order.
Use render() to render the debugger output.
Renders the debugger output content as WML.
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3