New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger: Break gets set on wrong subroutine #799
Comments
From tye@metronet.comRequesting a break point on a subroutine can actually set a break sub problem {
$SIG{__DIE__} = sub {
die "<b problem> will set a break point here.\n";
}; # The break point _should_ be set here.
warn "This line will run even if you enter <c problem>.\n";
}
&problem; Perhaps the debugger can skip the first executable lines if they Thanks. Perl Info
|
From [Unknown Contact. See original ticket]Tye McQueen writes:
There are many other related problems. My solution would be to put breaks on *all* the OP_DBSTATEs (sp?) which This will need to keep a linked list of DBSTATEs per line number, Ilya |
From [Unknown Contact. See original ticket]------- Forwarded Message Subject: Re: Perlbud ID 19991029.007: Debugger: Break gets set on wrong subroutine Excerpts from the mail message of Stephen P. Potter: I recall Ilya having some suggestions (that I don't think I ) Or perhaps the parse tree gives a clue to the execution order? and if the answer is "no", I'd try for this: ) Or perhaps the parser can insert a And set it to be at the line number of the opening "{" (or even I'm not sure what type of input you are requesting. I take it If you are asking if I can work it, then the answer is that it ------- End of Forwarded Message |
From @schwernThis problem still exists in 5.8.3. |
From @schwernThis problem still exists in 5.8.6 and blead@24148 |
From @kevindawsonimho this is DWIM Perl issue the following shows a hacked test file with debugger symbols after a if you do just a ( c ) all works as expected, so dose ( c problem ) /home/kevin/workspace/p5p/script/db-002.pl nb : shows traceable lines suggest we close this ticket as it is not an issue ps try the above and original with trepan.pl, is't even more illuminating |
From [Unknown Contact. See original ticket]imho this is DWIM Perl issue the following shows a hacked test file with debugger symbols after a if you do just a ( c ) all works as expected, so dose ( c problem ) /home/kevin/workspace/p5p/script/db-002.pl nb : shows traceable lines suggest we close this ticket as it is not an issue ps try the above and original with trepan.pl, is't even more illuminating |
From @cpansproutOn Mon Aug 26 08:13:35 2013, bowtie wrote:
You put the anonymous sub on a single line. The original report had it #!perl -d:Peek sub DB::DB {} sub problem { for (@{"_<".__FILE__}) { The result: 0 Notice how the %SIG assignment is breakable on the last line ‘};’. The debugger scans through the line range for the problem sub. The Whether this can be fixed in perl I don’t know. I think the debugger -- Father Chrysostomos |
From @rockyYou are correct. And I think you are correct that the best fix is to invoke (Sorry for the delayed reply.) |
This is currently the oldest issue still open on GitHub. |
yes its very old |
older then GitHub it's self |
|
I'd really like to know how to import such old projects and keep all the issues. Is it still at all possible? |
The dates were retained when importing from the original issue tracker, which was not GitHub |
nice! :) |
Yeah, but how to retain dates when importing, say, issues from GitLab to GitHub? |
old |
Yea ikr
…
On May 27, 2022 at 12:55 PM, <Flowism ***@***.***)> wrote:
old
—
Reply to this email directly, view it on GitHub (#799 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AR2DTG7V645NTOY6S4JCXJ3VMELAHANCNFSM47LWVCVQ).
You are receiving this because you commented.Message ID: ***@***.***>
|
Can this please fixed asap? This is currently blocking us. |
Migrated from rt.perl.org#1726 (status was 'open')
Searchable as RT1726$
The text was updated successfully, but these errors were encountered: