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.
The equivalent is $DB::single = 1
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With