I've inherited a module, and it's rather... hairy to maintain. It would be really nice to be able to use the debugger on it, but instead of having subroutines that you call, it loads a whole bunch of stuff into a package variable when it's 'use'ed, so by the time I get the chance to do anything with the debugger, it's already run through all of its code.
Is there any way to use the debugger on a module?