How To activate command line history in debugger?

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default How To activate command line history in debugger?

    Hi all,


    does anybody know how to enable the command line history in the debugger?

    Under Suse 8.2 is it already active. Not under Knoppix 3.1/3.2.

    I am a newbie in perl and don't understand the explanation in "man
    perldeb" to install Term::ReadKey and Term::Readline. I tried to create
    the file .perldb in ~ with the content
    use Term::ReadKey;
    use Term::Readline;
    but this does not enable the history feature. BTW in the perl lib dirs
    is a ReadLine.pm but no a ReadKey.

    Any hints are appreciated.

    Regards, Kurt

    Kurt Kronschnabl Guest

  2. Similar Questions and Discussions

    1. How do I get to the command line?
      I just loaded UBUNTU on a machine, and I need to load an NVIDIA driver. The instructions tell me to type "sh NVIDIA...", but I cannot find a way...
    2. remove command history
      If I press button "up" I can see all comand which I write before. How I can clear this command history under suse linux 8.0?
    3. RUN/execute a Command-Line command from an ASP page
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    4. RUN/execute a Command-Line command from an ASP page.
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    5. How do you activate a "COMMAND Button" with a macro?
      How can you activate a command button with a macro? I have a "COMMAND BUTTON" called refresh, on a subform that works very well. I would like to...
  3. #2

    Default Re: How To activate command line history in debugger?

    Saluton, Moin,

    Kurt Kronschnabl <k.kronschnabl_nospm_@ica-intercom-akademie.de> skribis:
    > does anybody know how to enable the command line history in the debugger?
    >
    > Under Suse 8.2 is it already active. Not under Knoppix 3.1/3.2.
    >
    > I am a newbie in perl and don't understand the explanation in "man
    > perldeb" to install Term::ReadKey and Term::Readline.
    Versuch's stattdessen mit Emacs M-x shell (M- heißt normalerweise Alt-Taste). Das gibt Dir eine Art Terminal in einem Emacs Puffer. Wenn Du auf der letzten Zeile nach dem Prompt Return, M-p oder M-n benutzt ist das, das was Du brauchst. Du hast aber auch die ganze Interaktion im Puffer, und kannst von dort Befehle nochmal abschicken oder das ganze sogar editieren :-)

    coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
    Daniel Pfeiffer

    -- GPL 3: take the wind out of Palladium's sails! --
    ------
    -- My other stuff here too, make.pl, sawfish...: --
    ------
    -- [url]http://dapfy.bei.t-online.de/[/url] --
    Daniel Pfeiffer Guest

  4. #3

    Default Re: How To activate command line history in debugger?



    Daniel Pfeiffer schrieb:
    > Versuch's stattdessen mit Emacs M-x shell (M- heißt normalerweise Alt-Taste). Das gibt Dir eine Art Terminal in einem Emacs Puffer. Wenn Du auf der letzten Zeile nach dem Prompt Return, M-p oder M-n benutzt ist das, das was Du brauchst. Du hast aber auch die ganze Interaktion im Puffer, und kannst von dort Befehle nochmal abschicken oder das ganze sogar editieren :-)
    Sounds good, but please give me a hint how to activate this? Do I need
    to create a .perldb file?

    Regards, Kurt

    Kurt Kronschnabl Guest

  5. #4

    Default Re: How To activate command line history in debugger?

    Saluton, Moin,

    Kurt Kronschnabl <kurt.kronschnabl-nospam@ica-intercom-akademie.de> skribis:
    > Daniel Pfeiffer schrieb:
    > > Versuch's stattdessen mit Emacs M-x shell (M- heißt normalerweise Alt-Taste). Das gibt Dir eine Art Terminal in einem Emacs Puffer. Wenn Du auf der letzten Zeile nach dem Prompt Return, M-p oder M-n benutzt ist das, das was Du brauchst. Du hast aber auch die ganze Interaktion im Puffer, undkannst von dort Befehle nochmal abschicken oder das ganze sogar editieren :-)
    >
    > Sounds good, but please give me a hint how to activate this? Do I need
    > to create a .perldb file?
    M-x shell
    $ perl -d /tmp/randloop

    Loading DB routines from perl5db.pl version 1.19
    Editor support available.

    Enter h or `h h' for help, or `man perldebug' for more help.

    main::(/tmp/randloop:3): while( sleep 1 ) {
    DB<1> s
    main::(/tmp/randloop:4): print ':', rand(), "\n";
    DB<1> s
    :0.530385083825426
    main::(/tmp/randloop:3): while( sleep 1 ) {
    DB<1> s
    main::(/tmp/randloop:4): print ':', rand(), "\n";
    DB<1> s
    :0.668097208810167
    main::(/tmp/randloop:3): while( sleep 1 ) {
    DB<1> q
    $

    (with highlighting for the prompts :-) When you hit Return at the end of buffer, everything after the prompt gets sent. On Return elsewhere, the command on that line first gets copied to the end.

    coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
    Daniel Pfeiffer

    -- GPL 3: take the wind out of Palladium's sails! --
    ------
    -- My other stuff here too, make.pl, sawfish...: --
    ------
    -- [url]http://dapfy.bei.t-online.de/[/url] --
    Daniel Pfeiffer Guest

  6. #5

    Default Re: How To activate command line history in debugger?


    Daniel Pfeiffer schrieb:

    Hi Daniel,
    > M-x shell
    Sorry "I am standing on the hose" :=) What do you mean with this line
    and the Debug session?
    > (with highlighting for the prompts :-)
    > When you hit Return at the end of buffer,
    > everything after the prompt gets sent.
    > On Return elsewhere,
    > the command on that line first gets copied to the end.
    This sounds good again, but again: How to do?

    Regards, Kurt

    Kurt Kronschnabl Guest

  7. #6

    Default Re: How To activate command line history in debugger?

    In article <bjhde7$g22$07$1@news.t-online.com>,
    Kurt Kronschnabl <k.kronschnabl_nospm_@ica-intercom-akademie.de> writes:
    >does anybody know how to enable the command line history in the debugger?
    >
    >Under Suse 8.2 is it already active. Not under Knoppix 3.1/3.2.
    >
    >I am a newbie in perl and don't understand the explanation in "man
    >perldeb" to install Term::ReadKey and Term::Readline. I tried to create
    >the file .perldb in ~ with the content
    >use Term::ReadKey;
    >use Term::Readline;
    >but this does not enable the history feature. BTW in the perl lib dirs
    >is a ReadLine.pm but no a ReadKey.
    You need to install the missing module. Become root and type

    perl -MCPAN -e 'install Term::ReadKey'

    If you have never run CPAN.pm before there will be a slew of questions
    to answer that should be self explanatory.

    Without this module Perl has no mechanism to intercept the arrow key
    presses and interpret them as requests to traverse the command line history.

    --
    Peter Scott
    [url]http://www.perldebugged.com[/url]
    Peter Scott Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139