----- Original Message ----- From: "Arijit Das" <[EMAIL PROTECTED]> To: <[email protected]>; <[email protected]> Sent: Monday, July 10, 2006 7:04 AM Subject: Debugging Perl Code Dynamically - howto?
> 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()". > > I cannot have my PERLDB_OPTS set to 'NonStop AutoTrace > LineInfo=execution_trace.out' right from the begining > because that would lead to a huge dump at > execution_trace.out for which I don't have enough > space. > > I just want the dump to start when the execution flow > enters "sub init()" and ends up, before coming out of > "sub init". > > Is there any way I can achieve that...? > > I needed it very quickly...so, couldn't spend a lot of > time with Perl literature to figure it out. > > A quick help/pointer on this will be very helpful. > > Thanks for your time, > Arijit > > Well Arijit, I have been using "OptiPerl" for over 5 years because it makes interactive tracing and debugging so easy. We "perlists" don't usually spend money on utilities because we solve our own problems. But I'm spoiled now. Anyway, they have a free 30 day eval version that you can use - long enough to solve your problem. (But I warn you: it will spoil you.) http://www.xarka.com/optiperl/ Hope this helps you out. Gregg Morrison ( No, I'm not affiliated with OptiPerl in any way ... just a user.) _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
