Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Breakpoints and GLOBAL_PHASE

by hurricup (Pilgrim)
on May 17, 2016 at 05:31 UTC ( [id://1163180]=note: print w/replies, xml ) Need Help??


in reply to Re: Breakpoints and GLOBAL_PHASE
in thread [SOLVED] Breakpoints behaviour in some perl versions

Since this is a custom debugger written from scratch, it's a tricky task, but i'll do my best

For now i can say that GLOBAL_PHASE seems not to be an issue here.

Small explanation of what i'm trying to do:

  1. We have an IDE with some Perl project. Breakpoints set in several files using IDE.
  2. On start of debugging session, IDE sends all breakpoints to the debugger.
  3. On each invocation of DB::sub/DB::postponed debugger checks list of already loaded files and attempts to set queued breakpoins. On success it informs IDE about it.
  4. On each invocation of DB::DB debugger goes to interactive mode and awaits commands from IDE. Breakpoints may be set here in interactive mode.

Everything works as intended in Strawberry 5.22.2, but in Ubuntu 5.18.2 breakpoints set in step 3 are ignored. But, if file already been loaded, you've step in and you set a breakpoint in interactive mode, they works fine.

It looks like breakpoint works only if its been set from DB::DB invoked from breakpoint's target file. But sounds too stupid.

Replies are listed 'Best First'.
Re^3: Breakpoints and GLOBAL_PHASE
by LanX (Saint) on May 17, 2016 at 13:41 UTC
    > Since this is a custom debugger written from scratch

    I'm irritated ... you are using perl5db.pl terminology but you wrote a new debugger from scratch?

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      What do you mean by "perl5db.pl" terminology?
        > What do you mean by "perl5db.pl" terminology?

        DB::sub , @{::_<filename} and so on ...

        see perl5db.pl

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found