Newbie question

Scott Penrose scottp at dd.com.au
Wed Jul 23 21:33:17 CDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Wednesday, Jul 23, 2003, at 16:54 Australia/Melbourne, Jacinta 
Richardson wrote:

> On Wed, 23 Jul 2003, Dayton, Bryan wrote:
>
>> Hi all,
>>
>> I've just started on Perl - having just done a two day course - and 
>> been
>> asked to maintain a heap of perl scripts that are activated via action
>> items on html forms.
>>
>> Is it possible turn on perl debugging in this environment (html) so I
>> can see what the scripts are doing?
>
> There is a CGI debugger that someone else can probably tell you the 
> name
> of (Scott?).  Alternately, so that you can see what's printed to STDERR

ptkdb - perl tk debugger is a good tool for doing an interactive debug 
of a running CGI.

In the instructions (see: perldoc Devel::ptkdb after you install it) 
tells you how to install and run it so that it pops up a graphical 
debugger when the CGI starts.

However it requires an X Server within reach of the CGI - so if you are 
behind a firewall but your CGI is not then you may have to do tunneling.

The other suggestions (print STDERR, Carp etc) are much easier to 
implement and run on a heavy loaded server.
But if you are still stuck and it requires more interactive debugging 
and you can be the only one on that box then I suggest ptkdb.

Scott
- -- 
Scott Penrose
Open source developer
http://linux.dd.com.au/
scottp at dd.com.au

Dismaimer: Open sauce usually ends up never coming out (of the bottle).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE/H0VwDCFCcmAm26YRAhj3AJ9eB3eASVQfsXeGsCNC4SpxNUhnsACgtAA3
PSJAo6BFtZZq3z8r5lwr03I=
=6xor
-----END PGP SIGNATURE-----




More information about the Melbourne-pm mailing list