For the afterworld:

In a CB-discussion we figured out a way to have a persistent input history for the perl-debugger,

alias pdb="rlwrap -H .perl_history perl -de0"

CAUTION: This alias will overwrite the python debugger "pdb", a price addicts like PythonFan would never pay!

you might need to disable readline-support in the .perldb file

parse_options("TTY=/dev/stdin ReadLine=0");

(should be possible to supply this last option on the CLI within the alias, but I couldn't figure it out within a posts timespan.)

Tested on Ubuntu Linux. Please post if and how it works for you!

Cheers Rolf

PS: CB-Log for the fame

Replies are listed 'Best First'.
Re: Persistent readline history with perldb
by mirod (Canon) on Apr 13, 2011 at 06:07 UTC

    How about using the available option for a history file:

    echo "&parse_options('HistFile=$HOME/.perldb.hist');" > $HOME/.perldb
      >How about using the available option for a history file:

      Thanks, seems to work even better! :) ¹

      Pitty that it's not mentioned in perldebug

      At least rlwrap had the benefit to have the same interface like bash has...

      Cheers Rolf

      1) First impressions: well C-d doesn't work anymore for exiting and the line numbering now starts where I left last time.