Debug
class Debug
Supports debugging and core error handling.
Attaches custom methods to the default error handling hooks in PHP. Currently, two levels of error are supported:
- Notice
- Warning
- Error
Uncaught exceptions are currently passed to the debug reporter as standard PHP errors.
Errors handled by this class are passed along to {@link SS_Log}. For configuration information, see the {@link SS_Log} class documentation.
Methods
Show the contents of val in a debug-friendly way.
Returns the caller for a specific method
Close out the show dumper.
Show a debugging message.
Create an instance of an appropriate DebugView object.
Check if the user has permissions to run URL debug tools, else redirect them to log in.
Details
at line 44
static
show(mixed $val, bool $showHeader = true, HTTPRequest $request = null)
Show the contents of val in a debug-friendly way.
Debug::show() is intended to be equivalent to dprintr() Does not work on live mode.
at line 60
static array
caller()
Returns the caller for a specific method
at line 86
static
endshow(mixed $val, bool $showHeader = true, HTTPRequest $request = null)
Close out the show dumper.
Does not work on live mode
at line 106
static
dump(mixed $val, HTTPRequest $request = null)
Quick dump of a variable.
Note: This method will output in live!
at line 119
static string
text(mixed $val, HTTPRequest $request = null)
Get debug text for this object
at line 133
static
message(string $message, bool $showHeader = true, HTTPRequest $request = null)
Show a debugging message.
Does not work on live mode
at line 150
static DebugView
create_debug_view(HTTPRequest $request = null)
Create an instance of an appropriate DebugView object.
at line 202
static
require_developer_login()
Check if the user has permissions to run URL debug tools, else redirect them to log in.