Devel::PDB - A simple Curses-based Perl Debugger
perl -d:PDB foo.pl
PerlDeBugger is a Curses-based Perl debugger with most of the essential functions such as monitoring windows for paddlist, call stack, custom watch expressions, etc. Suitable for debugging or tracing complicated Perl applications on the spot.
PerlDeBugger is still in development stage, not all of the planed functions have been implemented yet. Currently it can:
step-over, step-in, step-out, run
set/remove breakpoint
automatic display of lexical variables
add/remove custom watch expression
show/open compiled files
Stack Trace Window
Immediate Window for executing arbitrary perl statement
Switch to the Source Code Window
Switch to the Lexical Variable Window
Switch to the Watch Window
Views STDOUT or STDERR file
Continue execution
Step Out
Step In
Step Over
Toggle Breakpoint
Open main - top menu
Show 'Compiled Files' Dialog
Show 'Opened Files' Dialog
Quit the debugger
Add watch expression
Restart program
Add commands to runned perl script
View arguments(parameters) of runned program
Edit arguments(parameters) of runned program
Edit enviroments
Find Perl module and load this module
View stack of runned program
Save breakpoints and watches to config file
Load breakpoints and watches from config file
View special variables
Clear all breakpoints
Clear all watches
Clear all settings (breakpoints and watches)
Minimized window in vertical size
Maximized window in vertical size
Minimized window in horizontal size
Maximized window in horizontal size
Move the cursor
If you use VI, you will know
Search using a RegEx in the current opened file
Search Next
Search Previous
Goto a specific line
Show the Data::Dumper output of the highlighted item in a scrollable dialog
Remove the highlighted expression (Watch Window only)
Toggle the focus between the file list and the filter
Select the highlighted file or apply the filter to the file list
Files will be putted to ~/.PDB directory.
Configuration files of saved brakpoints and watches
Configuration files of rebinded keys. For function keys is FX and for Cotrol keys is Control-X. For example keys 'F10' for open Menu and keys 'Ctrl+C','Ctrl+Q','Q' for Quit.
Menu=F10
Quit=Control-C,Control-Q,Q
Output standart STD files from runned program
perldebug
Ivan Yat-Cheung Wong <email@ivanwong.info>
Igor Bujna <igor.bujna (at) post.cz>
Copyright (C) 2007 by Ivan Y.C. Wong
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Devel::PDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::PDB
CPAN shell
perl -MCPAN -e shell install Devel::PDB
For more information on module installation, please visit the detailed CPAN module installation guide.