Under mod_perl 1, I used the following simple debugging framework: 1. apache calls DebugClient 2. DebugClient connects to DebugServer (Unix socket) 3. DebugServer calls the request handler with a fake Apache object (Apache::FakeRequest) and returns the response to the DebugClient
If an error occured, the DebugClient displayed the error instead of the response. When a source file changed, the DebugServer did the necessary preprocessing of the file and restarted itself. This way, I could easily debug my request handler. When I modified a file and rerun the request, I either saw the new response or a nicely displayed error message. I did not have to restart the apache webserver or look for the error in the log files. Does a similar framework exist in mod_perl 2? I have heard about Apache::Test. Is this a solution? Regards, Thomas