in reply to How to attach a perl debugger to a running perl
I prefer the gui interface provided by perl -d:ptkdb <SCRIPTNAME>
You must have the DEVEL/ptkdb.pm module installed for this to work.
On the other hand, I've used signals to adjust variables inside a script that control the amount of debug information written out. I gave the ability to "kick" the script through debug levels 1-4 and back to off.
That worked quite well and would provide you the opportunity to get specific variable dumps at certain points in your code.
|