On 14/04/2011 20:40, mark baumeister wrote:

I'm trying to use the Padre IDE for perl. From what I have read I
guess it is not really a bonified IDE. However, I have read that one
can at least use it to debug your code. It also has a feature to run
your scripts. I have tried both of this functions with little
success.

I wonder what makes you think Padre is not a bona fide IDE? It is a work
in progress, and the biggest ommission is a lack of documentation, but
it is largely intuitive and self-documenting and I think it is
well-conceived and implemented.

If I have my .pl files in the correct directory and the program does
something very simple like print out "Hello World", then when I run I
get "Hello World" in the output window. However, if I try to run a
program that requires input from the keyboard (<STDIN> I don't get
anything in the output window. Is there another window for input?

If you enable the option 'Use external window for execution' (in Run
Parameters) then this window will allow you to type values which will be
delivered in STDIN. But it is very simple to change your code to either
make a literal assignment

  my $input = "what I would have typed\n";

or read from DATA. Another alternative is to use the debugger to modify
the variables.

Also, when I try to debug/step through my code, it steps
through but I don't see any variables in my 'variables' window and
again when it steps to a line that requires user input (<STDIN>, it
seems to hang up and not do anything. Does anyone have any
experience with Padre or advice how to get the supposed features to
work?

You must add variables to the Debugger window whose values you want to
watch. Put the cursor on the name of a variable in the code and click on
the 'Display Value' toolbar icon (a pair of spectacles). The window will
now update as you step through the code.

HTH,

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


  • Padre IDE mark baumeister
    • Re: Padre IDE Rob Dixon

Reply via email to