Skip to content

Commit

Permalink
Show stack trace for fatal errors if xdebug is loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Nov 2, 2014
1 parent a8c5b70 commit 00432fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Cake/View/Errors/fatal_error.ctp
Expand Up @@ -32,3 +32,8 @@
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong>
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'fatal_error.ctp'); ?>
</p>
<?php
if (extension_loaded('xdebug')) {
xdebug_print_function_stack();
}
?>

0 comments on commit 00432fa

Please sign in to comment.