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
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