Do you know where your variables are? | |
PerlMonks |
Problems starting the debuggerby morelenmir (Beadle) |
on May 20, 2018 at 01:58 UTC ( [id://1214933]=perlquestion: print w/replies, xml ) | Need Help?? |
morelenmir has asked for the wisdom of the Perl Monks concerning the following question: Hey Guys! I am in the process of getting back in to Perl after being away from programming as a whole for quite a while. I thought this might be a good time to learn how to use the built-in debugger. Previously I ran 'EPIC' inside 'Eclipse', but ended up very much disliking that IDE. Therefore this time around I intend to write programmes in a text editor called 'EditPad Pro' and then employ the native Perl debugger as necessary. Unfortunately I have run in to some problems straight out of the gate, As a test I started with the simplest of all one-line programmes, saved as 'debug_test.pl': say "Hello";Next, at the console window I used the command: perl -d debug_test.plThis is the output I received from Perl:
I am using a fresh install of the newest Strawberry Perl (32Bit), which is release 5.26.2.1. I run this in Windows 7 (64Bit), patched with the latest updates. For what it is worth the same error occurs if I try the 64Bit edition of Strawberry Perl either. Other than this, Perl programmes themselves run without any problem. It is only when I try to execute them under the native debugger that I encounter an issue. Can any of you chaps suggest a solution for this? A quick search of the forum came up with a very similar issue reported by 'Ovid' way back in 2007. However that gentleman encountered the error while employing something called 'Prove', which I have never come across before and is certainly not something I am using myself. I think most of the suggestions in that thread related to using 'Prove', so I do not know how to apply them in my own far simpler situation. UPDATE: Well... A degree more persistence with the search function, both here and over at Google suggested another approach to sort this out that was not centred on 'Prove'; create an environment variable 'TERM' and set its value to 'dumb' (case sensitive for each I believe). After doing so perl -d debug_test.pl began working like a charm!!! So... I guess that is the fix. Which is good of course, but I have no idea why I couldn't find that result the first half-dozen times I searched for an answer... Weird indeed. Still. The jobs a good'un--problem solved!
"Aure Entuluva!" - Hurin Thalion at the Nirnaeth Arnoediad.
Back to
Seekers of Perl Wisdom
|
|