Alex Rivera | Logout

Can the Perl debugger save the ReadLine history to a file?

Asked 2011-06-21T23:35:26.267
11

I work quit a bit with lib ReadLine and the lib Perl Readline.

Yet, the Perl debugger refuses to save the session command line history.

Thus, each time I invoke the debugger I lose all of my previous history.

Does anyone know how to have the Perl debugger save, and hopefully, append session history similar to the bash HISTORYFILE ?

Edit
Report

1 Answer

6

Add parse_options("TTY=/dev/stdin ReadLine=0"); to .perldb, then:

rlwrap -H .perl_history perl -d ...
answered 2011-06-22T01:42:10.820

Your Answer