set recursion limit to 1 for dumped lexicals and function args; with unlimited depth, it was
making my Mozilla shoot to 1.5gigs and taking the server and browser forever to get the error page up. keep the HTML of the original page and tack it on to the end of the stack trace. add WebGUI::Middleware::StackTrace to the default site.psgi in place of the standard StackTrace, but leave a comment for the other one in case people prefer it.
This commit is contained in:
parent
617ca066dc
commit
59a22f4101
2 changed files with 69 additions and 4 deletions
|
|
@ -34,7 +34,9 @@ builder {
|
|||
|
||||
enable '+WebGUI::Middleware::Maintenance';
|
||||
|
||||
enable_if { $_[0]->{'webgui.debug'} } 'StackTrace';
|
||||
# enable_if { $_[0]->{'webgui.debug'} } 'StackTrace';
|
||||
enable_if { $_[0]->{'webgui.debug'} } '+WebGUI::Middleware::StackTrace';
|
||||
|
||||
enable_if { $_[0]->{'webgui.debug'} } 'Debug', panels => [
|
||||
'Timer',
|
||||
'Memory',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue