Subject: | conflicts with ::Plugin::Session |
I like this idea. Thanks for your work on it!
It didn't work for me because produced output even when there was no problem. This seemed to be because I'm also using the Session plugin, which calls a flush() function at "DESTROY" time, which in turn using a database handle. Somehow this module interferes there.
I tried modifying your source to not register the __DIE__ handler, and instead call the debugging function from withing an "error_mode()" routine.
That solved the CGI::Session problem, but the stack trace was then wrong-- it tracked back to where we finally died in error_mode()....
It's a tricker problem to provide a good stack trace than I realized!
Mark