Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

perl debug improvement

Tags:

debugging

perl

I often need to debug in my Perl program, some of them are very big, and are not started by perl xxx.pl.

I have use Python's pdb module, which can set a breakpoint in program by using

pdb.set_trace()

When execute to the point, program will give out a python interactive shell. Then I can debug. I want to know that is there a such debug module or method in Perl? I also want to know other debug support in perl and its modules.

like image 756
Chinaxing Avatar asked Oct 05 '22 20:10

Chinaxing


1 Answers

The equivalent is $DB::single = 1.

like image 135
daxim Avatar answered Oct 11 '22 03:10

daxim