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

Below error thrown while trying to debug my perl script

The system cannot find the path specified. Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call + didn't wo rk. The COLUMNS and LINES environment variables didn't work. The resiz +e program didn't work. at C:/Perl64/lib/Term/ReadKey.pm line 362. Compilation failed in require at C:/Perl64/lib/Term/ReadLine/Perl.pm l +ine 64. at C:/Perl64/lib/Term/ReadLine/Perl.pm line 64 Term::ReadLine::Perl::new('Term::ReadLine', 'perldb', 'GLOB(0x +2eeafc8)', 'GLOB(0x211948)') called at C:/Perl64/lib/perl5db.pl line 6066 DB::setterm called at C:/Perl64/lib/perl5db.pl line 2238 DB::DB called at \\osw2k12vc10-c1\C/ostore74/src/osci/scripts/ +build_test /nt\osi_nt_remote.pl line 5 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info.

i asked the help in chatterbox and someone asked me to check below details

C:\>mode con Status for device CON: ---------------------- Lines: 300 Columns: 80 Keyboard rate: 31 Keyboard delay: 1 Code page: 437

Even i read the Term::Readkey module. but i dont know how to use and what to do

Replies are listed 'Best First'.
Re: Unable to debug due to terminal problem (read)
by tye (Sage) on Oct 24, 2013 at 14:23 UTC

    The error message you quoted tells you one simple way to work around it:

    set LINES=40 set COLUMNS=80

    - tye        

      I always knew tye was more brilliant than me, but this one really makes me feel stupid.

      Where in his quoted error message do you see that solution made evident? I must be completely blind.

      As always, the question is most sincere. I really don t see how you came to that conclusion.

        "Unable to get Terminal Size" then "The COLUMNS and LINES environmen­t variables didn't work".

        The "set" lines I showed are how you set environment variables in Windows.

        Is there any other steps from the messages to the solution that still aren't clear to you?

        - tye