How can I debug a Perl script?

前端 未结 8 1388
天涯浪人
天涯浪人 2021-02-01 16:47

When I run a Perl script, how can I debug it? For example, in ksh I add the -x flag. But how I do the same in Perl?

8条回答
  •  [愿得一人]
    2021-02-01 17:01

    perl -d your_script.pl args
    

    is how you debug Perl. It launches you into an interactive gdb-style command line debugger.

提交回复
热议问题