Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Using the perl debugger

by almut (Canon)
on Mar 15, 2009 at 17:47 UTC ( [id://750761]=note: print w/replies, xml ) Need Help??


in reply to Re: Using the perl debugger
in thread Using the perl debugger

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...

Replies are listed 'Best First'.
Re^3: Using the perl debugger
by planetscape (Chancellor) on Mar 15, 2009 at 18:34 UTC

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://750761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-18 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found