What debugger for perl?

I came from PHP and I used zenddebugger to debug PHP.

How can I debug perl?

+6
source share
5 answers

Using the Perl built-in debugger?

perldoc perldebug 
+15
source

While Jonathan's answer is optimal, use strict and warning pragmas:

 use strict; use warnings; 

Help you catch most of your mistakes if you are not already using them.

+6
source

Here is my debug tip revised from perlmonks.

Let the debugger automatically stop the program when a warning is issued from the Perl runtime system. So you can look at the context of the problem and explore.

This node gives motivation and here it is in its final form .

+4
source

Anyway you choose, be sure to add Data::Dumper to your debugging routines.

+2
source

Devel :: Peek is a good tool for debugging data.

0
source

Source: https://habr.com/ru/post/889132/


All Articles