in reply to Breaking into debugger

$DB::single=1;

IIRC, you have to start your script with -d and hit "c" (continue) to run until it calls the above code.