[ABE.pm] perl debugging

Faber J. Fedor faber at linuxnj.com
Thu Feb 28 12:31:16 PST 2008


On 28/02/08 15:20 -0500, Ricardo SIGNES wrote:
> * "Faber J. Fedor" <faber at linuxnj.com> [2008-02-28T14:50:59]
> > I've got a program that runs in about 30 seconds or so.  Running it with
> > 'perl -d' takes about ten minutes; I'm assuming it's all the JSON calls
> > the debugger has to handle.
> 
> Why is the debugger doing JSON calls that your program isn't?

My program is doing a bunch of JSON calls; I'm assuming the slowdown is
because the debugger is handling all of them.

> > I thought I saw somewhere where you can turn debugging on and off from
> > within the program itself but I can't seem to find it.
> 
> If you set $DB::single=1, that will create a breakpoint.

That's what I was looking for! Thanks.

-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the ABE-pm mailing list