class SS_Backtrace (View source)

Properties

Methods

public static 
array
filtered_backtrace(null|array $ignoredFunctions = null)

Return debug_backtrace() results with functions filtered specific to the debugging system, and not the trace.

public static 
array
filter_backtrace(array $bt, null|array $ignoredFunctions = null)

Filter a backtrace so that it doesn't show the calls to the debugging system, which is useless information.

public static 
unknown
backtrace(unknown_type $returnVal = false, unknown_type $ignoreAjax = false, $ignoredFunctions = null)

Render or return a backtrace from the given scope.

public static 
string
full_func_name(SS_Object $item, $showArgs = false, int $argCharLimit = 10000)

Return the full function name. If showArgs is set to true, a string representation of the arguments will be shown

public static 
string
get_rendered_backtrace(string $bt, bool $plainText = false, $ignoredFunctions = null)

Render a backtrace array into an appropriate plain-text or HTML string.

Details

static array filtered_backtrace(null|array $ignoredFunctions = null)

Return debug_backtrace() results with functions filtered specific to the debugging system, and not the trace.

Parameters

null|array $ignoredFunctions

If an array, filter these functions out of the trace

Return Value

array

static array filter_backtrace(array $bt, null|array $ignoredFunctions = null)

Filter a backtrace so that it doesn't show the calls to the debugging system, which is useless information.

Parameters

array $bt

Backtrace to filter

null|array $ignoredFunctions

List of extra functions to filter out

Return Value

array

static unknown backtrace(unknown_type $returnVal = false, unknown_type $ignoreAjax = false, $ignoredFunctions = null)

Render or return a backtrace from the given scope.

Parameters

unknown_type $returnVal
unknown_type $ignoreAjax
$ignoredFunctions

Return Value

unknown

static string full_func_name(SS_Object $item, $showArgs = false, int $argCharLimit = 10000)

Return the full function name. If showArgs is set to true, a string representation of the arguments will be shown

Parameters

SS_Object $item
$showArgs
int $argCharLimit

Return Value

string

static string get_rendered_backtrace(string $bt, bool $plainText = false, $ignoredFunctions = null)

Render a backtrace array into an appropriate plain-text or HTML string.

Parameters

string $bt

The trace array, as returned by debug_backtrace() or Exception::getTrace()

bool $plainText

Set to false for HTML output, or true for plain-text output

$ignoredFunctions

Return Value

string

The rendered backtrace