in reply to Avoiding INIT
My question: is there any way to tell Perl NOT to do that, and to stop at the first (next) statement in the body of the code?
So you're asking for a means to have the debugger skip over some of the program? It doesn't make much sense to have a debugger that skips over pieces of code. You'll have to add a condition to the code.
#!/usr/bin/perl INIT { return if $ENV{DEBUG_SKIP_INIT}; print "here INIT\n"; } print "here main\n";
Then launch the debugger using
DEBUG_SKIP_INIT=1 perl -d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Avoiding INIT
by geoffleach (Scribe) on Feb 09, 2010 at 16:23 UTC | |
by ikegami (Patriarch) on Feb 09, 2010 at 17:09 UTC | |
by geoffleach (Scribe) on Feb 09, 2010 at 19:03 UTC | |
by ikegami (Patriarch) on Feb 09, 2010 at 21:02 UTC | |
by geoffleach (Scribe) on Feb 13, 2010 at 19:04 UTC | |
| |
by Corion (Patriarch) on Feb 09, 2010 at 16:25 UTC | |
by geoffleach (Scribe) on Feb 09, 2010 at 18:56 UTC | |
by ikegami (Patriarch) on Feb 09, 2010 at 20:14 UTC |