Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Perl Debugger Problem

by hillside_dweller (Initiate)
on Dec 18, 2016 at 14:06 UTC ( [id://1178011]=perlquestion: print w/replies, xml ) Need Help??

hillside_dweller has asked for the wisdom of the Perl Monks concerning the following question:

I am using Perl 5.24 on Windows 7.
On trying out the debugger I find it has issues:

Loading DB routines from perl5db.pl version 1.49 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(consolidator.pl:20): my $test = 0; my $debug = 1; SetConsoleMode failed, LastError=|6| at C:/Strawberry/perl/vendor/lib/ +Term/ReadK ey.pm line 334. at C:/Strawberry/perl/vendor/lib/Term/ReadLine/readline.pm line 1581. readline::readline(" DB<1> ") called at C:/Strawberry/perl/ve +ndor/lib/T erm/ReadLine/Perl.pm line 11 Term::ReadLine::Perl::readline(Term::ReadLine::Perl=ARRAY(0x56 +a004), " DB<1> ") called at C:/Strawberry/perl/lib/perl5db.pl line 7339 DB::readline(" DB<1> ") called at C:/Strawberry/perl/lib/perl +5db.pl lin e 1841 DB::_DB__read_next_cmd(undef) called at C:/Strawberry/perl/lib +/perl5db.p l line 2761 DB::DB called at consolidator.pl line 20

I read a post from roho that seemed to have some similar problem and it mentioned TERM. That is not set on my system.

I have checked that Term::ReadLine is installed.

I'd rather not have to debug the debugger at the moment !

Any pointers to what to do would be much appreciated.

Replies are listed 'Best First'.
Re: Perl Debugger Problem (non-fatal)
by tye (Sage) on Dec 18, 2016 at 14:34 UTC

    I find the "SetConsoleMode failed" error is pretty common. But I don't find it preventing the debugger from working. Perhaps your script does something like load Carp::Always or similar that makes this error more fatal?

    - tye        

Re: Perl Debugger Problem
by Anonymous Monk on Dec 18, 2016 at 20:06 UTC
    set TERM=dumb or $ENV{TERM}='dumb'; to silence the terminal warning

      Thanks, that did it. Debugger working fine since I did that.

      .
Re: Perl Debugger Problem
by Laurent_R (Canon) on Dec 18, 2016 at 16:38 UTC
    my $test = 0; my $debug = 1;
    I am not entirely sure of what you are doing, but you probably don't want to use my when typing interactively statements under the debugger.
Re: Perl Debugger Problem (code tags)
by LanX (Saint) on Dec 18, 2016 at 14:21 UTC
    Welcome to the monastery!

    Posts are HTML formatted and we can't read much at the moment.

      In order to help you best, please put <p> </p> tags around your paragraphs.

    Put <code> </code> tags around your code and data.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-18 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found