Debugger class

package Core
subpackage Debug

 Methods

Adds a variable to the debugger.

add(mixed $var, string $label) 
Static

This variable will be watched.

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.

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
Static

Returns

string

Prints a debug message if the settings allow it.

out(string $message) 
Static

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.

Parameters

$message

string

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

Prints the cached debug messages to the screen

showAll() 
Static

Returns the debugger defined in system settings.

_getSystemSettingDebugger() : string
Static

Returns

string

 Properties

 

$_defaultDebuggerName : string

 Constants

 

DEBUGGER_DEVNULL

DEBUGGER_DEVNULL 
 

DEBUGGER_FILE

DEBUGGER_FILE 
 

DEBUGGER_HIDDEN

DEBUGGER_HIDDEN 
 

DEBUGGER_VISIBLE

DEBUGGER_VISIBLE 
 

DEBUGGER_VISIBLE_ADV

DEBUGGER_VISIBLE_ADV 
 

DEBUGGER_VISIBLE_AND_FILE

DEBUGGER_VISIBLE_AND_FILE