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

How can I step through a Perl program using Padre?

I have installed Padre and its dependencies "Wx" and "Alien::wxWidgets", after much agony, but all I can do with Padre at the moment is edit and save a Perl program, and run a Perl program from start to finish.

I see no icons for doing the normal debug activities, such as step into the next line, execute a function, and step out of a function

Can anyone help? There is a Padre web page saying you can use a Tools->Advanced option to get some additional icons on the toolbar but it doesn't work. Nor does there seem to be any key-binding for debug commands.

  • Comment on How can I step through a Perl program using Padre?

Replies are listed 'Best First'.
Re: How can I step through a Perl program using Padre?
by beech (Parson) on Mar 10, 2017 at 10:20 UTC

    Hi

    In my padre I see a Debug menu ( Alt+Debug )

    And in it I see a few options, like "Show Debugger"

    When I turn that on I see tab labeled Debugger with a big bug icon/button

    When I click on the bug button, I see a few more buttons,

    I see a an arrow pointing inside braces, mouse over says single step....into subroutine...

    In the Debug menu there is also an item that opens http://padre.perlide.org/features/perl5-debugger.html

Re: How can I step through a Perl program using Padre?
by wjw (Priest) on Mar 10, 2017 at 18:54 UTC
    I never have gotten Padre to work on any platform. On those occasions when I want an IDE debugger, I find that the ptkdb sets up right from CPAN very nicely and works.

    I have used Komodo and DDD in the past as well, but ptkdb is simple to use and provides what I need without having to set up another full application. It does require Perl::TK, but that installs as a dependency pretty smoothly in my experience. Once installed, it is a matter calling perl -d:ptkdb (script_name)

    Hope that helps.

    ...the majority is always wrong, and always the last to know about it...

    A solution is nothing more than a clearly stated problem...

      > I never have gotten Padre to work on any platform.

      Same here. I would suggest Eclipse and the Perl plugin system EPIC as the best way to get a fuller-featured Perl IDE.

Re: How can I step through a Perl program using Padre?
by oldtechaa (Beadle) on Mar 10, 2017 at 17:42 UTC

    Padre has not seen any changes in a year now and has quite a few bugs still. You may want to look into a different IDE like Geany for a maintained IDE with Perl support. I can't tell you about debugging support, though.

Re: How can I step through a Perl program using Padre?
by Amphiaraus (Beadle) on Mar 10, 2017 at 17:52 UTC
    When I click the "Bug" button a DOS window titled "padre.exe -d <PROGRAM_NAME>" appears, and within the DOS it says "Press any key to continue".

    When I press a key both the DOS window and the Padre display close.

      Hi,

      When I click the "Bug" button a DOS window titled "padre.exe -d <PROGRAM_NAME>" appears, and within the DOS it says "Press any key to continue". When I press a key both the DOS window and the Padre display close.

      You should ignore that window and only deal with Padre

      You can see screenshots of what it looks like at http://padre.perlide.org/features/perl5-debugger.html

      Do you see the same thing?

      You can disable the "DOS window" if you go to
      Alt+Tools
      Preferences
      Language - perl 5
      Script Execution
      [   ] Use external window for execution