> -----Original Message-----
> From: Mike Ni [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 15 March 2004 10:43 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Debugging(perl -d)
> 
> Hey,
> 
> I was handed several perl files written for the Apache
> Web Server. The person who wrote these isn't here any
> more. 
> 
> I need to trace and document the perl files. 
> I udnerstand there is a built-in debuuger come with
> the perl - "!perl -d". 
> 
> However, since these perl files were wriitten for the
> web server. Therefore, the STDIN is not the "command
> level". Rather, they will be executed as a batch mode.
> For example: Every time a get request coming from the
> Internet, the web server will locate the appropriate
> perl file and execute it. 
> 
> What is the best way to debug/trace these perl file? 
> Thanks!
> 
> Mike

I had this problem just recently... What is it with this chaos
clustering.. 

Check out 'Devel::Trace'.  It allows you to put

'-d:Trace' into your perl script, and an execution trace is dumped.

you may have to get Devel::Trace from CPAN.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to