Sha256: 4d9a6a55af461ac4d72d275f1d6173fe60f3e0a43079d37f05a3beb8ed2839b0

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

class Trepan::SubSubcommand::SetDebug < Trepan::SubSubcommandMgr
  unless defined?(HELP)
    HELP   = 'Set internal debugger settings'
    NAME   = File.basename(__FILE__, '.rb')
    PREFIX = %w(set debug)
  end
end

if __FILE__ == $0
  require_relative '../../mock'
  dbgr = MockDebugger::MockDebugger.new
  cmds = dbgr.core.processor.commands
  set_cmd = cmds['set']
  command = Trepan::SubSubcommand::SetAuto.new(dbgr.core.processor, 
                                                  set_cmd)
  name = File.basename(__FILE__, '.rb')
  cmd_args = ['set', name]
  set_cmd.instance_variable_set('@last_args', cmd_args)
  # require_relative '../../../lib/trepanning'
  # Trepan.debug(:set_restart => true)
  command.run(cmd_args)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trepanning-0.0.6 processor/command/set_subcmd/debug.rb
trepanning-0.0.4 processor/command/set_subcmd/debug.rb