in reply to Re^2: I never use the debugger.
in thread I never use the debugger.
Add a debugging conditional for the nth line of the loop, and set a breakpoint at it.
In my experience, though, if I'm interested in the thousandth interation of something, there's something happening (a particular record, or database entry, or something) that triggers my interest in the 1,000th time through the loop versus the 999th time.
If I can identify what that is, I can write debug code to detect the suspicious condition, and set a breakpoint for that. Then I can decide what to print out, and where to investigate from there.
Unfortunately, the perl debugger doesn't seem to have a "detect this condition and break" function, and I sure wish it did. I consider it a flaw in the debugger when I have to write debug code by hand, but it's better than writing *all* the debug code by hand, only to tear it *all* out later...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: I never use the debugger.
by Tanktalus (Canon) on Jul 27, 2005 at 21:52 UTC | |
by Anonymous Monk on Jul 28, 2005 at 16:55 UTC |