« blib/lib/Devel/Trepan/CmdProcessor/Command/Set_Subcmd/Debug_Subcmd/Except.pm
↑ Summary
blib/lib/Devel/Trepan/CmdProcessor/Command/Set_Subcmd/Debug_Subcmd/Skip.pm »
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # Copyright (C) 2012, 2014-2015 Rocky Bernstein <rocky@cpan.org> | ||
| 3 | use warnings; no warnings 'redefine'; no warnings 'once'; | ||
| 4 | use rlib '../../../../../..'; | ||
| 5 | |||
| 6 | package Devel::Trepan::CmdProcessor::Command::Set::Debug::Macro; | ||
| 7 | use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd; | ||
| 8 | |||
| 9 | use strict; | ||
| 10 | use vars qw(@ISA @SUBCMD_VARS); | ||
| 11 | @ISA = qw(Devel::Trepan::CmdProcessor::Command::SetBoolSubsubcmd); | ||
| 12 | # Values inherited from parent | ||
| 13 | |||
| 14 | use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS; | ||
| 15 | |||
| 16 | our $IN_LIST = 1; | ||
| 17 | our $SHORT_HELP = 'Debug macro expansion'; | ||
| 18 | =pod | ||
| 19 | |||
| 20 | =head2 Synopsis: | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | our $HELP = <<'HELP'; | ||
| 25 | =pod | ||
| 26 | |||
| 27 | B<set debug macro> [B<on>|B<off>] | ||
| 28 | |||
| 29 | Debug macro expansion. If "on" or "off" is not given, "on" is assumed. | ||
| 30 | |||
| 31 | =head2 See also: | ||
| 32 | |||
| 33 | L<C<show debug macro>|Devel::Trepan::CmdProcessor::Command::Show::Debug::Macro> | ||
| 34 | |||
| 35 | =cut | ||
| 36 | HELP | ||
| 37 | |||
| 38 | our $MIN_ABBREV = length('ma'); | ||
| 39 | use constant MAX_ARGS => 1; | ||
| 40 | |||
| 41 | unless (caller) { | ||
| 42 | # Demo it. | ||
| 43 | # require_relative '../../../mock' | ||
| 44 | # name = File.basename(__FILE__, '.rb') | ||
| 45 | |||
| 46 | # dbgr, set_cmd = MockDebugger::setup('set') | ||
| 47 | # $max_cmd = __PACKAGE__->new(dbgr.core.processor, $set_cmd) | ||
| 48 | # $cmd_ary = Trepan::SubSubcommand::SetMaxList::PREFIX | ||
| 49 | # $cmd_name = cmd_ary.join(' ') | ||
| 50 | # $subcmd = __PACKAGE__->new($set_cmd->{proc}, $max_cmd, $cmd_name); | ||
| 51 | # $prefix_run = cmd_ary[1..-1] | ||
| 52 | # $subcmd->run(prefix_run); | ||
| 53 | # $subcmd-.run(prefix_run, qw(0)); | ||
| 54 | # $subcmd->run(prefix_run, qw(20)); | ||
| 55 | # $subcmd->summary_help(name); | ||
| 56 | |||
| 57 | # print '-' x 20; | ||
| 58 | # print $subcmd->save_command | ||
| 59 | } | ||
| 60 | |||
| 61 | 1; |