|Perl: the Markov chain saw|
Review Synopsis: Good for viewing variables and data structures, and for remote debugging
Devel::ptkdb is a graphical debugger using the Tk toolkit.
What's good?The documentation is good.
It's easy to use, much easier than the normal perl debugger.
You can follow the flow of your program and choose if you want to step in or step over subroutine calls.
You can set and maintain breakpoints easily.
You can watch arbitrary expressions, variables and complex data structures during the run.
You can debug remote running programs and cgi scripts.
You can even debug Tk programs.
What's bad?Though you can debug Tk programs, it is not always possible to do that.
It is a bit slow.
You need perlTk.
It is so nice, you might end up using it for debugging simple problems, where it is just overkill.
What's missing?A regex debugger would be nice, but i think this will come with perl 6.
BottomlineDevel::ptkdb is a full featured graphical debugger for perl written in perl by Andrew Page.
Though most of the time a simple print statement in the right place will tell you what's wrong, it's good to have a tool like this at hand.
Many thanks to Andrew Page for his work!
There has been much controversy about debugging lately in the Monastery and I'd rather put dozens of print statements in a program than starting the debugger, but sometimes it can be VERY handy.
For more thoughts on perl debugging have a look at the following nodes: