Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Debugger to Save Output

by bichonfrise74 (Vicar)
on Jun 29, 2011 at 17:18 UTC ( #911998=perlquestion: print w/ replies, xml ) Need Help??
bichonfrise74 has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to run the Perl debugger using option s (to enter to all the subroutines) and save the output in a standard file?

Comment on Debugger to Save Output
Re: Debugger to Save Output
by chrestomanci (Priest) on Jun 29, 2011 at 20:57 UTC

    I think you are looking for the trace option in the perl debugger. Just start the debugger, type t and enter and then run your program. Every line of code that is executed will be printed to screen. It should no be to hard to send a copy of that output to a file.

    However, can you tell us more about what you are looking to achieve, because if you are trying to profile your code, or create a call graph, there will be much better tools out there for the purpose.

Re: Debugger to Save Output
by bichonfrise74 (Vicar) on Jun 29, 2011 at 22:04 UTC
    Yup, that's it. I knew it was possible.

    I just wanted to see the different internal / external modules that the program will go.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://911998]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2014-07-11 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls