mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#2328 - Show backtrace for uncaught exceptions (ajshort)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@70444 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2956cc482f
commit
c86971c93f
@ -323,7 +323,7 @@ class Debug {
|
||||
$lines = array_slice($lines, $offset, 16, true);
|
||||
$reporter->writeSourceFragment($lines, $errline);
|
||||
|
||||
$reporter->writeTrace($lines);
|
||||
$reporter->writeTrace(($errcontext ? $errcontext : debug_backtrace()));
|
||||
$reporter->writeFooter();
|
||||
exit(1);
|
||||
}
|
||||
|
@ -146,9 +146,9 @@ class DebugView {
|
||||
/**
|
||||
* Write a backtrace
|
||||
*/
|
||||
function writeTrace() {
|
||||
function writeTrace($trace) {
|
||||
echo '<h3>Trace</h3>';
|
||||
Debug::backtrace();
|
||||
echo Debug::get_rendered_backtrace($trace);
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user