From: Hugo C. <hug...@ya...> - 2007-10-12 14:27:05
|
Jamie Cameron <jca...@we...> wrote: Yeah, I find STDERR debugging with Data::Dumper to the best method in Webmin, as often you are dealing with CGIs that are hard to attach a regular debugger to. What I often do to debug perl CGI scripts, is run them over Devel::ptkdb, a debugger that allows to set breakpoints and has an easy to use interface. To open the debugger window on the right X-server, you can set the DISPLAY variable in the first BEGIN block of the CGI script (e.g. to point to the same display as where you run the browser that makes the http request). I also use a rotating one shot log to debug scripts. The rotation is important to track down a sequence of redirections. Hope this helps. Hugo --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. |