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 currently can:
step-over, step-in, step-out, run
set/remove breakpoint
Evaluate 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
Other functionalities
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. Set or remove breakpoint on cursor position.
Open main - top menu
Show 'Compiled Files' Dialog
Show 'Opened Files' Dialog
Quit the debugger
Add/Edit/Remove breakpoint with condition on given line. Can be also removed by F9 - Breakpoint
Refresh all window contents
Export information to file from actual source and stack variables or watches
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
List all breakpoints in files and position
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
Export everything from window to given file
Files will be created in directory when program is run . If in enviroment exist PDB_use_HOME than everything is created into ~/.PDB directory. Every file begin with program name and continue with:
PDB_use_HOME
Configuration files of saved brakpoints and watches
Output standart STD files from runned program
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
Configuration of own colours as defined in Curses::UI::Color. Each line has one definition, where frst is key and second is colour with space separattor.
For example set general foreground and background color as RED on WHITE:
-fg red -bg white
perldebug
Ivan Yat-Cheung Wong <email (at) ivanwong.info>
Igor Bujna <igor.bujna (at) post.cz>
Copyright (C) 2007 by Ivan Y.C. Wong, Igor Bujna
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.