Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Enabling or disabliing the debugger at runtimeby diotalevi (Canon) |
on Jul 16, 2007 at 05:38 UTC ( [id://626778]=note: print w/replies, xml ) | Need Help?? |
Here's two nifty recipies for using a debugger at rumtime: At any arbitrary moment. Perhaps you've got some process that's long running and you occasionally want to stop it, examine its contents and then tell it to continue. Presumably you'd do the moral equivalent of Enbugger->unimport to remove the debugger.
Start the debugger on exception. $SIG{__DIE__} = sub { require Enbugger; Enbugger->import };Please share your ideas. You're smart people, I like using other smart people's ideas! ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In Section
Meditations
|
|