Sha256: 097aa942bb08c5cf5d63cc80a0a3c539f6149d6413bdb6dcc33b1e26d2aa2655

Contents?: true

Size: 736 Bytes

Versions: 12

Compression:

Stored size: 736 Bytes

Contents

# -*- coding: utf-8 -*-
# Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net>
require_relative '../../base/subsubcmd'

class Trepan::SubSubcommand::SetDebugMacro < Trepan::SetBoolSubSubcommand
  unless defined?(HELP)
    HELP = "Set macro debugging"
    MIN_ABBREV  = 'macro'.size
    NAME        = File.basename(__FILE__, '.rb')
    PREFIX      = %W(set debug #{NAME})
  end
end

if __FILE__ == $0
  # Demo it.
  require_relative '../../../mock'
  require_relative '../debug'
  cmd = MockDebugger::subsub_setup(Trepan::SubSubcommand::SetDebug,
                                   Trepan::SubSubcommand::SetDebugMacro)
  %w(off on 0 1).each { |arg| cmd.run([cmd.name, arg]) }
  puts '-' * 10
  puts cmd.save_command.join("\n")
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trepanning-2.15.35 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-1.93.35 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-2.15.33 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-1.93.32 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.1.6 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.1.4 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.1.3 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.1.2 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.1.1 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.1.0 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.0.9 processor/command/set_subcmd/debug_subcmd/macro.rb
trepanning-0.0.8 processor/command/set_subcmd/debug_subcmd/macro.rb