February 2006
Intermediate to advanced
304 pages
6h 16m
English
Perl comes with a good interactive debugger. There's just one problem with it: You have to have a terminal to use it. In the CGI programming environment, there are no terminals.
Fortunately, there is another Perl debug, ptkdb. (The module name is Devel::ptkdb. If you install this module, you've installed the debugger.)
The ptkdb debugger requires a windowing system to run. In other words, if the web server can contact your X server, you can do interactive debugging of your CGI script.
The only trick is how to get things started. That's where this debugging script comes in.
1 #!/usr/bin/perl -T 2 # 3 # Allows you to debug a script by starting the 4 # interactive GUI debugger on your X screen. ...
Read now
Unlock full access