Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Analyzing Perl Code

by nitin1704 (Sexton)
on Sep 19, 2012 at 14:48 UTC ( #994472=note: print w/replies, xml ) Need Help??


in reply to Re^3: Analyzing Perl Code
in thread Analyzing Perl Code

Thanks Jan, I noticed that your module uses Hook::LexWrap too. So I was moving in the right direction after all. Today I found this other module Debug::Trace. I have a feeling TraceSubs is probably better with it's indented output representing call depth. Debug::Trace on the other hand doesn't require any changes in the source code. Are there any other differences?

Replies are listed 'Best First'.
Re^5: Analyzing Perl Code
by Jenda (Abbot) on Sep 19, 2012 at 21:45 UTC

    I've never used Debug::Trace and it's ages since I used Debug::TraceSubs for the last time so I can't comment.

    To minimize the changes to the code you can put all the Devel::TraceSubs related code into a separate file and add just require 'that_file.pl'; into the source, under the use statements. It's not perfect, but the $devel_tracesubs->trace() needs to run after all the subroutines you want to track were loaded and defined.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994472]
help
Chatterbox?
[erix]: I guess I'll stare it down in the end but I'm already staring for a while... :)
[erix]: btw, I had a typo in there, so reload (if anyone is looking)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2018-01-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (216 votes). Check out past polls.

    Notices?