ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
[perl #57016] debugger: o warn=0 die=0 ignored
by Bram via RT other posts by this author
Jul 27 2008 10:57AM messages near this date
Re: [perl #57016] debugger: o warn=0 die=0 ignored | [perl #57012] Result of FETCH not checked for overload?
On Wed Jul 16 13:02:26 2008, tye.mcqueen@[...].com wrote:
>  This is a bug report for perl from tyemq@[...].org,
>  generated with the help of perlbug 1.35 running under perl v5.8.7.
>  
>  
>  -----------------------------------------------------------------
>  [Please enter your report here]
>  
>  In the Perl debugger, the command "o warn=0 die=0" does nothing
>  useful.
>  
>  This bug also applies to the latest 5.010 Perl I could conveniently
>  find
>  on http://search.cpan.org/.
>  
>  Here is a fix:
>  
>  --- 5.8.7/perl5db.pl    2005-09-27 10:45:51 -0700
>  +++ tye/perl5db.pl    2008-07-16 12:52:18 -0700
>  @@ -7703,6 +7703,8 @@
>           }
>           elsif ($prevwarn) {
>               $SIG{__WARN__} = $prevwarn;
>  +        } else {
>  +            undef $SIG{__WARN__};
>           }
>       } ## end if (@_)
>       $warnLevel;
>  @@ -7744,6 +7746,9 @@
>           elsif ($prevdie) {
>               $SIG{__DIE__} = $prevdie;
>               print $OUT "Default die handler restored.\n";
>  +        } else {
>  +            undef $SIG{__DIE__};
>  +            print $OUT "Die handler removed.\n";
>           }
>       } ## end if (@_)
>       $dieLevel;
>  
>  [Please do not change anything below this line]
>  -----------------------------------------------------------------


Thanks for the bug report/patch.

Can you also provide an example of where it doesn't behave as you 
expected?


Kind regards,

Bram
Thread:
Tye McQueen
Rafael Garcia-Suarez
Tye McQueen
Bram
Tye McQueen
Bram via RT

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved