Arijit Das wrote at 7/10/2006 7:04 AM:

>I have a huge perl script of which I want to get the
>execution trace (PERLDB_OPTS='NonStop AutoTrace
>LineInfo=execution_trace.out') of say just a single 
>subroutine "sub init()".
>  
>
[...]

>A quick help/pointer on this will be very helpful.
>  
>

perldoc perldebug -- Manual on the Perl debugger
perldoc perldebtut -- Tutorial on the Perl debugger

You should start the program with the Perl debugger, set a breakpoint 
for the beginning of the sub, execute the code up to the breakpoint, 
then set your options. Then either continue execution or step through 
each line, depending on how you want to proceed.

You might also find what you need simply by stepping through some lines 
and then using the other debugger commands to examine variables or run a 
line of code.

And believe it or not, reading up on something probably takes less time 
than waiting on a mailing list response.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to