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

Re: How perl debugger breakpoint works?

by chromatic (Archbishop)
on Sep 06, 2011 at 02:06 UTC ( #924315=note: print w/replies, xml ) Need Help??


in reply to How perl debugger breakpoint works?

When compiling code with the debugger active, Perl replaces what would normally be nextstate ops with dbstate ops. The latter check for breakpoints when encountered. See pp_dbstate in pp_ctl.c.

Replies are listed 'Best First'.
Re^2: How perl debugger breakpoint works?
by PerlOnTheWay (Scribe) on Sep 06, 2011 at 02:54 UTC

    Where does Perl replace nextstate with dbstate?

    When I search OPf_SPECIAL,there're too many stuff popped up..

      See the newSTATEOP function in op.c. The optree generator calls this function during compilation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924315]
help
Chatterbox?
Discipulus DWIWSTM is a Perl7 feature
Discipulus DoWhatIWasSupposed ToMean

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-09-20 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?