in reply to debugging trick of the week: fatal warnings
Or something along those lines. I used it when I wanted find the cause of warnings in a very long-running script. I'd start the script with -d, and when it hit a warning it would pop me into the debugger and I could check the current value of all variables, step forward, etc.$SIG{'__WARN__'} = sub { die $_[0]};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: debugging trick of the week: fatal warnings
by stephen (Priest) on Apr 26, 2002 at 03:40 UTC |