Perl Debugger
This project was designed to aid users in selecting better passwords when signing up for services.
Features
- Log method to log strings and scalar variables
- Dump method to inspect data structures, objects and other variables
- Provide stacktraces
- Provide timing
- Script
- Methods only
- Arbitrary points
- A pure perl library
How to use
All you need to do is import the library by putting this in your script:
use Debugger;
Constructor arguments
log_file => path/to/debug/file
This is optional and defaults to debug.log
where the script is stored.
Examples
Object instantiation
Log a message or scalar variable
Will output some text in this variable
into the log file.
Dump an object or variable
Example 1
Will output the contents of @lines
to the log file.
Example 2
Time a script
Provide a stacktrace
Get it on Github
You can download the project via github: Perl Debugger