Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jjore (6662)

Thursday July 12, 2007
01:35 AM

Enbugger - Turn your debugger on at runtime

[ #33787 ]

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;

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.