On Thu, Dec 31, 2009 at 1:18 AM, Gabor Szabo <szab...@gmail.com> wrote:
> On Thu, Dec 31, 2009 at 5:08 AM, Peng Yu <pengyu...@gmail.com> wrote:
>> It seems that there are more than one choices of perl interactive
>> shells. I'm wondering which one is best or most popular.
>
> I don't think there is a *best* one. There might be one that fits most
> your situation and your experience level. A couple of choices:
>
> You can start using the built in debugger by typing
>
> perl -d script.pl


In a 'perl -d', I try the following command, but it seems that it is
not working as I expected. Can I input any arbitrary perl commands in
the 'perl -d' session as if it is running by a perl interpreter?

  DB<10> my $count = 10;

  DB<11> print $count+1, "\n";
1

  DB<12> print $count, "\n";


  DB<13> print "$count \n";


> It is a very powerful command line debugger.
>
>
> You can install Tk and Devel::ptkdb   and then run your script via
>
> perl -d:ptkdb script.pl
>
> you get a debugger with a GUI.
>
>
>
> You could buy Komodo from ActiveState, it comes with a debugger or
> install Eclipse + EPIC which has a debugger or you could try
> Padre, the Perl IDE which just recently - about a week ago - got its
> own debugger.
>
> While the debugger in Padre is not on par yet with the others, I'd be
> especially happy if you
> tried it and reported any issues or any specific feature you need so
> we can include it in the
> next version. http://padre.perlide.org/
>
> Gabor
>

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


Reply via email to