Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Problem Running Perl Debugger

by SilasTheMonk (Chaplain)
on May 19, 2010 at 23:56 UTC ( [id://840832]=note: print w/replies, xml ) Need Help??


in reply to Problem Running Perl Debugger

I don't know what is going on here, but I can spot three things that might shed light on the issue.

  1. You have two versions of Term::Readline::Perl installed. I'm not saying I cannot see reasons why that could be, but you might want to elaborate on how it came about.
  2. About 20% of tests for Term::Readline::Perl failed and there a number of bugs. I would also say "have you read the docs", but there does not seem to be any.
  3. Searching for "SetConsoleMode" through the various modules mentioned threw up this interesting snippet in Term::ReadLine
  4. # the Windows CONIN$ needs GENERIC_WRITE mode to allow # a SetConsoleMode() if we end up using Term::ReadKey open FIN, ( $^O eq 'MSWin32' && $console eq 'CONIN$' ) ? "+<$cons +ole" : "<$conso +le"; open FOUT,">$consoleOUT"; #OUT->autoflush(1); # Conflicts with debugger? my $sel = select(FOUT); $| = 1; # for DB::OUT select($sel); $ret = bless [\*FIN, \*FOUT]; } else { # Filehandles supplied $FIN = $_[2]; $FOUT = $_[3]; #OUT->autoflush(1); # Conflicts with debugger? my $sel = select($FOUT); $| = 1; # for DB::OUT select($sel); $ret = bless [$FIN, $FOUT]; }
    Have you tried posting a small piece of code that reproducibly causes the problem?

Replies are listed 'Best First'.
Re^2: Problem Running Perl Debugger
by roho (Bishop) on May 20, 2010 at 05:08 UTC
    Thanks for your reply. The reason there are two versions of Term::ReadLine::Perl is that one is core (area=perl) and the other is a more recent update from CPAN (area=site).

    Entering 'perl -d anyprogram.pl' will reproduce the error.

    "Its not how hard you work, its how much you get done."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://840832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found