The debugger is a wonderful, useful piece of code ... and is really opaque, both from the standpoint of reuse and hacking, and from the standpoint of the documentation of the stuff it
I can see there are nice hooks to talk to the debugger from another process, but they're not documented. It would be great to be able to add a command or two to the debugger, but there's no easy way todo it other than copying the code, adding the command, and there you are. Of course, this is a maintenance nightmare.
Maybe I've found my subject for the Perl conference this year ...
If you are interested in the debugger, it's the only book out there that covers it well.