Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by chrestomanci (Priest)
on Jun 14, 2012 at 15:46 UTC ( #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.


Comment on Re: perl5db - how to step into my sub without stepping into glob
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-09-30 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (377 votes), past polls