debug - Greple module for debug control
greple -dmc
greple -Mdebug
greple -Mdebug::on(getoptex)
greple -Mdebug::on=getoptex
Enable debug mode for specified target. Currently, following targets are available.
getoptex Getopt::EX getopt Getopt::Long color -dc Color information directory -dd Change directory information file -df Show search file names number -dn Show number of processing files misc -dm Pattern and other information option -do Show command option processing process -dp Exec ps command before exit stat -ds Show statistic information grep -dg Show grep internal state unused -du Show unused 1-char option name
When used without function call, default target is enabled; currently getoptex and option.
getoptex
option
$ greple -Mdebug
Specify required target with on function like:
on
$ greple -Mdebug::on(color,misc,option) $ greple -Mdebug::on=color,misc,option
Calling debug::on=all enables all targets, except unused and number.
debug::on=all
unused
number
Target name marked with -dx can be enabled in that form. Following commands are all equivalent.
-dx
$ greple -Mdebug::on=color,misc,option $ greple -dc -dm -do $ greple -dcmo
Next command will show how the module option is processed in Getopt::EX module.
$ greple -Mdebug::on=getoptex,option -Mdig something --dig .
To install App::Greple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Greple
CPAN shell
perl -MCPAN -e shell install App::Greple
For more information on module installation, please visit the detailed CPAN module installation guide.