Version: current

# Class SS_Backtrace

Package: sapphire\dev
Located at sapphire/dev/Backtrace.php

## Methods summary

`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. Return debug_backtrace() results with functions filtered specific to the debugging system, and not the trace. #### Parameters $ignoredFunctions null|array $ignoredFunctions If an array, filter these functions out of the trace #### Returns `array` array
`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. Filter a backtrace so that it doesn't show the calls to the debugging system, which is useless information. #### Parameters $bt array $bt Backtrace to filter $ignoredFunctions null|array $ignoredFunctions List of extra functions to filter out #### Returns `array` array
`public static unknown` | # `backtrace( unknown_type $returnVal = false, unknown_type $ignoreAjax = false, mixed $ignoredFunctions = null )` Render or return a backtrace from the given scope. Render or return a backtrace from the given scope. #### Parameters $returnVal unknown_type $returnVal $ignoreAjax unknown_type $ignoreAjax $ignoredFunctions #### Returns `unknown` unknown
`public static` | # `any_to_string( mixed $arg )`
`public static` | # `full_func_name( mixed $item, mixed $showArgs = false )` Return the full function name. If showArgs is set to true, a string representation of the arguments will be shown 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, boolean $plainText = false, array $ignoredFunctions = null )` Render a backtrace array into an appropriate plain-text or HTML string. Render a backtrace array into an appropriate plain-text or HTML string. #### Parameters $bt string $bt The trace array, as returned by debug_backtrace() or Exception::getTrace() $plainText boolean $plainText Set to false for HTML output, or true for plain-text output $ignoredFunctions array List of functions that should be ignored. If not set, a default is provided #### Returns `string` The rendered backtrace

### Magic methods summary

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -