≡ Menu

Debugging CGI Using ptkdb

ptkdb is a graphical Perl debugger. To use it when debugging command line scripts is very straight forward. Just type in the command line:

perl -d:ptkdb script.pl

and you’re good to go.

However, using it to debug CGIs needs some tweaking to your CGI source. Replace the usual


line at the top of the CGI script with this one:

#!/usr/bin/perl -d:ptkdb

Go to your browser and invoke your CGI and a debugger window should pop up.

{ 0 comments… add one }

Leave a Comment