-
Notifications
You must be signed in to change notification settings - Fork 578
Debugger: Break gets set on wrong subroutine #799
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
Comments
From [email protected]Requesting 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. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
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 😃 |
This comment was marked as off-topic.
This comment was marked as off-topic.
Yeah, but how to retain dates when importing, say, issues from GitLab to GitHub? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Can this please fixed asap? This is currently blocking us. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Context: Someone has figured out that you can list all open tickets across all of Github with https://github.com/issues?q=is%3Aopen+is%3Aissue+archived%3Afalse+sort%3Acreated-asc, and this is the oldest one. |
and just plain fix "b postpone subname", which didn't stop at all on my postponed sub test code at all as far back at 5.10. Fixes Perl#799
Migrated from rt.perl.org#1726 (status was 'open')
Searchable as RT1726$
The text was updated successfully, but these errors were encountered: