我们都知道perl5db.pl
可以通过perl -d
调用,但是有没有办法通过一些环境变量而不是命令行来调用调试器选项?
最佳答案
将 PERL5OPT 环境变量设置为“-d”:
$ export PERL5OPT=-d
$ ./test.pl
Loading DB routines from perl5db.pl version 1.3
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(./test.pl:3): print "Hello\n";
DB<1> r
Hello
关于perl - 有没有办法通过一些环境变量来调用 Perl 调试器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6689200/