Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: perl5db - how to step into my sub without stepping into glob

by chrestomanci (Priest)
on Jun 14, 2012 at 15:46 UTC ( [id://976241]=note: print w/replies, xml ) Need Help??


in reply to perl5db - how to step into my sub without stepping into glob

Looks like you have found one answer by providing a function name to s (step).

Another way is to c <sub name> or b <sub name>

Yet another method, is to edit the source to force a breakpoint. If you add DB::single = 1; to your code then the debugger will stop on the next statement.

This can be very helpful if the fully qualified name of your function is not clear, or if it is dynamically compiled. It can be a problem though as once you set a breakpoint that way, you can't turn it off without editing your code again and restarting your program.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found