The debugger is loaded and started in a process that wasn't compiled with -d. Neat, eh?
for ( 1
.. 100 ) {
if ( $_ == 50 ) {
eval 'use Enbugger'
}
}
Or maybe you'd like to do something about your exceptions a bit more manually...
if ( my $e = $@ ) {
require Enbugger;
$DB::single = 2;
}
If you weren't aware, the debugger has remote-debugger support. The following starts debugging and opens a console to whatever is listening on port 7000.
local $ENV{PERLDB_OPTS} = 'RemotePort=localhost:7000';
require Enbugger;
$DB::single 2;
Enbugger - Turn your debugger on at runtime 0 Comments More | Login | Reply /