Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Using the perl debugger

by planetscape (Canon)
on Mar 15, 2009 at 17:23 UTC ( #750754=note: print w/ replies, xml ) Need Help??


in reply to Using the perl debugger

Perhaps you would have better luck using Devel::ptkdb, the graphical debugger for Perl. (PM Review by busunsl; Cultured Perl: Debugging Perl with ease {tutorial}). Devel::ptkdb has a "step over" command that should do the trick.

If that does not work for you, EPIC + Eclipse should offer something similar. (How to debug Perl apps with Eclipse {tutorial}; g0n has two very nice articles: Getting started with Eclipse & EPIC and Re: Perl Editor - Eclipse EPIC - How to debug?)

HTH,

planetscape


Comment on Re: Using the perl debugger
Re^2: Using the perl debugger
by almut (Canon) on Mar 15, 2009 at 17:47 UTC
    Devel::ptkdb has a "step over" command that should do the trick.

    Are you sure this isn't just a frontend to what happens when you press 'n' in the command line debugger? I.e. the usual "step over sub" ('n') vs. "step into sub / single step" ('s'). A quick check of the sources seems to confirm my suspicion...

      Actually, no, I am not 100% certain. I've not used either graphical debugger, just the CLI. I was basing my statement on an evident misreading of the content of the Devel::ptkdb tutorial, which states:

      Step in: continuing execution step by stepping inside the currently selected line of code. If the current line of code contains a function, stepping in will go inside that function.
      Step over: continuing execution over the currently selected line of code. Execution occurs unconditionally, regardless of the line's contents, and control returns to the debugger upon completion.

      As opposed to the CLI's help menu that n

      Next, steps over subs

      , not lines.

      My mistake. almut is correct.

      HTH,

      planetscape

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-04-21 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls