|
|
| Do you know where your variables are? | |
| PerlMonks |
hexcoder's scratchpadby hexcoder (Friar) |
| on Aug 12, 2008 at 06:36 UTC ( #703825=scratchpad: print w/ replies, xml ) | Need Help?? |
all about autovivification Re^2: Autovivification sucking the life out of me great book list Which non-Perl books made you a better (?:Perl )?Programmer?
========================= Lets assume, you want to use the debugger. Then the problem might be to get the debugger to break after a warning condition happened. The warnings contain a line number which is fine, but when the line is part of a loop, this is not enough information. We would want a stop with the current context. Only then can we examine the state of the program in the context that produced the problem.
So what to do? The signal handler code should go into the debugger initialization file .perldb. Then I do not have to modify the original source code. This is the content of file .perldb (place it in the current or in the home directory):
Note: This is mostly stolen from my writeup Re: Debugging a program and Re^3: Debugging a program, but I think it fits better here. |
|