开发者

Is there a way to invoke Perl debugger by some environment variables?

We all know that perl5db.pl开发者_开发百科 can be invoked by perl -d,but is there a way to invoke the debugger by some environment variables instead of a command line option?


Set the PERL5OPT environment variable to '-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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜