Function xc_dump_bt
Outputs a backtrace using the Core\Fault
interface.
Uses:
Core\Fault
Since:
3.1
Located at
Boot.inc.php
Parameters summary
array|Exception |Core\Fault\Incident |
$trace = null |
<p>Backtrace to output. If set to <code>null</code>, the current invocation backtrace
is queried and used instead. Supports both Core traces or PHP-native
traces (which are automatically converted to Core traces). Additionally,
an exceptions or an incidents can be supplied as sources for a trace.</p> |
Core\Stream
|
$ofs = null |
Optional stream instance to write dump to. |
boolean|string|Core\URI |Core\Fault\Formatter |
$renderFormat = null |
<p>Optional. Controls the renderer format to be used. If Boolean, the HTML
formatter is used if <code>true</code> and the plain text formatter if <code>false</code>.
This emulates the previous behaviour of only supporting HTML or plain
text output.
If set to <code>null</code> (default), capabilities are automatically detected and
either HTML or plain text is output. If a string, the string is used as
the configuration URI for a formatter instance. Additionally, a URI is
accepted as well. If a formatter instance is provided, that formatter
is used instead.</p> |
Return value summary
string|null
|
Returns the generated dump as a string or null on error.
|