I and several others in my company have been trying for several years to connect a debugger to mod_perl. We managed to break a few points in the mod_perl process before we actually reached the code in our ASP pages, but we never managed to get inside our ASP pages. Even if we burst before our code is launched, and then c into our $ DB :: single = 1 statement inside our interesting code, the page will start until completion and will not break (it seems to skip $ DB :: single )
We all believe that there is an error in our version of perl, our version of perl5db, or our version of mod_perl, which makes it impossible to do for our version. We are on perl 5.8.9, and some version of apache 2 that is eluding me at the moment.
I know this is not an answer, but I just wanted to tell you about it so that you donβt feel bad about giving up if you finally give up.
This problem that we encounter with mod_perl is one of the main reasons that I go into the process of adding a Plack layer between our web server and our application. With this level of abstraction, I can start another web server in development - and one in which I can connect a debugger. I donβt get involved with this in the same way as suggesting that you do it, but only because you know that I am really serious about interactive debugging.
I think the next logical step in the epic battle for interactive debugging in mod_perl would be to build the latest version and see if it works. Then update our version of perl and see if it works.
masonk
source share