in reply to perl -d on a mod_perl application?

The same technique as described in Debugging a CGI should work. This allows the use of either a graphical debugger such as ptkdb or text-based debugging.

It should work perfectly the first time! - toma