develooper Front page | perl.perl5.porters | Postings from August 2013

[perl #1726] Debugger: Break gets set on wrong subroutine

Thread Previous | Thread Next
kevin dawson via RT
August 26, 2013 20:34
[perl #1726] Debugger: Break gets set on wrong subroutine
Message ID:

imho this is DWIM Perl issue

the following shows a hacked test file with debugger symbols after a
breakpoint has been set against the sub problem ( b main::problem )

if you do just a ( c ) all works as expected, so dose ( c problem )

  1    	#!perl
  3:   	use strict;
  4:   	use warnings;
  6    	sub problem {
  7:b    		$SIG{__DIE__} = sub { die "<b problem> will set a break point
here.\n" };
  8:    		warn "This line will run even if you enter <c problem>.\n";
  9    	}
 11 ==>	problem();
 13:   	exit(0);

nb : shows traceable lines

suggest we close this ticket as it is not an issue

ps try the above and original with, is't even more illuminating

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About