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:
- We have an IDE with some Perl project. Breakpoints set in several files using IDE.
- On start of debugging session, IDE sends all breakpoints to the debugger.
- 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.
- 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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.