Debugger class

deprecated [2012-07-24] Class was renamed to cDebug
package Core

 Methods

Adds a variable to the debugger.

add(mixed $var, string $label) 
InheritedStatic

This variable will be watched.

inherited_from \cDebug::add()

Parameters

$var

mixed

A variable or an object

$label

string

An optional description for the variable

Returns instance of debugger.

getDebugger(string $sType) : \cDebugInterface
Static

If not defined, it returns the debugger from the current system settings.

deprecated Class was renamed to cDebug

Parameters

$sType

string

The debugger to get, empty string to get debugger defined in system settings

Exceptions

\cInvalidArgumentException If type of debugger is unknown

Returns

Returns default debugger name.

getDefaultDebuggerName() : string
InheritedStatic
inherited_from \cDebug::getDefaultDebuggerName()

Returns

string

Prints a debug message if the settings allow it.

out(string $message) 
InheritedStatic

The debug messages will be in a textrea in the header and in the file debuglog.txt. All messages are immediately written to the filesystem but they will only show up when cDebug::showAll() is called.

inherited_from \cDebug::out()

Parameters

$message

string

Message to display. NOTE: You can use buildStackString to show stacktraces

Prints the cached debug messages to the screen

showAll() 
InheritedStatic
inherited_from \cDebug::showAll()

Returns the debugger defined in system settings.

_getSystemSettingDebugger() : string
InheritedStatic
inherited_from \cDebug::_getSystemSettingDebugger()

Returns

string

 Properties

 

$_defaultDebuggerName : string
Inherited
inherited_from \cDebug::$$_defaultDebuggerName

 Constants

 

DEBUGGER_DEVNULL

DEBUGGER_DEVNULL 
Inherited
inherited_from \cDebug::DEBUGGER_DEVNULL
 

DEBUGGER_FILE

DEBUGGER_FILE 
Inherited
inherited_from \cDebug::DEBUGGER_FILE
 

DEBUGGER_HIDDEN

DEBUGGER_HIDDEN 
Inherited
inherited_from \cDebug::DEBUGGER_HIDDEN
 

DEBUGGER_VISIBLE

DEBUGGER_VISIBLE 
Inherited
inherited_from \cDebug::DEBUGGER_VISIBLE
 

DEBUGGER_VISIBLE_ADV

DEBUGGER_VISIBLE_ADV 
Inherited
inherited_from \cDebug::DEBUGGER_VISIBLE_ADV
 

DEBUGGER_VISIBLE_AND_FILE

DEBUGGER_VISIBLE_AND_FILE 
Inherited
inherited_from \cDebug::DEBUGGER_VISIBLE_AND_FILE