Permalink
Browse files

Show stack trace for fatal errors if xdebug is loaded.

  • Loading branch information...
dereuromark committed Nov 2, 2014
1 parent a8c5b70 commit 00432fa427230b0005d85e17bf3fa51127248725
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/View/Errors/fatal_error.ctp
@@ -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.