Sha256: 2e9041fcba10e396e8dd2475735a4691366748fd6547cf884e763c99b02cc07e
Contents?: true
Size: 1.3 KB
Versions: 18
Compression:
Stored size: 1.3 KB
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../../base/subsubcmd' class Trepan::SubSubcommand::ShowMaxWidth < Trepan::ShowIntSubSubcommand unless defined?(HELP) HELP = 'Show the number of characters the debugger thinks are in a line.' MIN_ABBREV = 'wid'.size NAME = File.basename(__FILE__, '.rb') PREFIX = %w(show max width) end end if __FILE__ == $0 # Demo it. require_relative '../../../mock' # FIXME: DRY the below code dbgr, show_cmd = MockDebugger::setup('show') testcmdMgr = Trepan::Subcmd.new(show_cmd) # max_cmd = Trepan::SubSubcommand::ShowMax.new(dbgr.core.processor, # show_cmd) # cmd_name = Trepan::SubSubcommand::ShowMaxWidth::PREFIX.join('') # maxx_cmd = Trepan::SubSubcommand::ShowMaxWidth.new(show_cmd.proc, # max_cmd, # cmd_name) name = File.basename(__FILE__, '.rb') # require_relative '../../../../lib/trepanning' # dbgr = Trepan.new(:set_restart => true) # dbgr.debugger # puts max_cmd.summary_help(maxx_cmd) # puts # maxx_cmd.run([]) end
Version data entries
18 entries across 18 versions & 2 rubygems