in reply to Re: Padre: how to examine Perl speical variables
in thread Padre: how to examine Perl special variables

open a perl file then

Alt+Debug+Show Debugger

And debugger tab shows up on the right on top of outline

Press run debugger button (some kind of catterpillar)

Then press next button (n) to step over, and variables will show in list if you have "Show Local Variables (y 0)" checked

However, "Show Global Variables" is greyed out

padre debugger show global variables -> http://padre.perlide.org/trac/wiki/Features/Perl5Debugger

I have been getting perl debug errors, see POD below, so you might notice it is automaticly disabled when I think it is unsafe, then re-enable.

If you want to see @ISA|@INC|%ENV|%SIG use the p|x button.

Clicking the "p|x" button works to show the value of  $_. Enter @INC or any other variable in the textbox and press "p|x" button again to see it in "Debug Output"

Replies are listed 'Best First'.
Re^3: Padre: how to examine Perl special variables
by HelenCr (Monk) on Feb 10, 2012 at 18:18 UTC
    I don't understand. I run padre, then I "open" a program (*.pl file). Then, there is a "Debug" menu item (not "Alt"). The "Debug" menu item drops down with these options: step in/out/over, run to breakpoint, jump to curr. line, breakpoints etc., show variable value, show stack trace, quit debugger.

    I don't see "Show local variables (y 0)" like you mention.

    It's Padre 0.86 on Windows 7 x64.
      Padre is now at 0.94. It would be better if you upgraded it. You can go with the new DWIM Perl distribution that includes the latest Padre (and that replaces the "Padre on Strawberry" distributions.
      Well gee-wiz, upgrade Padre
Re^3: Padre: how to examine Perl special variables
by HelenCr (Monk) on Feb 10, 2012 at 18:32 UTC
    Anonymous Monk wrote: "Clicking the "p|x" button works to show the value of $_ . Enter @INC or any other variable in the textbox and press "p|x" button again to see it in "Debug Output"

    Where can I find the "p|x" button and the "text box"? Are you talking about Padre?
        I have Padre 0.86 on Windows, and I don't see the "Project Tools" and "Document Tools" sidebars, (or how to get them), nor do I see the "Output View" lower pane.

        Do they exist in Padre 0.86 on Windows?

        Alternatively, is there a downloadable Padre 0.95 version for Windows?