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

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-10-23 10:07 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.