Ask a Question related to PERL Miscellaneous, Design and Development.
-
Kurt Kronschnabl #1
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
-
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... -
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? -
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... -
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... -
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... -
Daniel Pfeiffer #2
Re: How To activate command line history in debugger?
Saluton, Moin,
Kurt Kronschnabl <k.kronschnabl_nospm_@ica-intercom-akademie.de> skribis:
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 :-)> 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.
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
-
Kurt Kronschnabl #3
Re: How To activate command line history in debugger?
Daniel Pfeiffer schrieb:Sounds good, but please give me a hint how to activate this? Do I need> 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 :-)
to create a .perldb file?
Regards, Kurt
Kurt Kronschnabl Guest
-
Daniel Pfeiffer #4
Re: How To activate command line history in debugger?
Saluton, Moin,
Kurt Kronschnabl <kurt.kronschnabl-nospam@ica-intercom-akademie.de> skribis:
M-x shell> 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?
$ 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
-
Kurt Kronschnabl #5
Re: How To activate command line history in debugger?
Daniel Pfeiffer schrieb:
Hi Daniel,
Sorry "I am standing on the hose" :=) What do you mean with this line> M-x shell
and the Debug session?
This sounds good again, but again: How to do?> (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.
Regards, Kurt
Kurt Kronschnabl Guest
-
Peter Scott #6
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:You need to install the missing module. Become root and type>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.
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



Reply With Quote

