Sha256: 747a1be1eafbeea7a5616ac852a6fe79b793bd27c22a8f8e8a265a1bd1382311

Contents?: true

Size: 1.14 KB

Versions: 14

Compression:

Stored size: 1.14 KB

Contents

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

class Trepan::SubSubcommand::ShowDebugExcept < Trepan::ShowBoolSubSubcommand
  unless defined?(HELP)
    HELP        = 'Show excecution traceback on debugger command exception'
    MIN_ABBREV  = 'st'.size
    NAME        = File.basename(__FILE__, '.rb')
    PREFIX      = %w(show debug except)
  end

end

if __FILE__ == $0
  # Demo it.
  require_relative '../../../mock'
  require_relative '../../../subcmd'
  name = File.basename(__FILE__, '.rb')

  # FIXME: DRY the below code
  dbgr, show_cmd  = MockDebugger::setup('show')
  debug_cmd       = Trepan::SubSubcommand::ShowDebug.new(dbgr.core.processor, 
                                                         show_cmd)
  
  # FIXME: remove the 'join' below
  cmd_name        = Trepan::SubSubcommand::ShowDebugExcept::PREFIX.join('')
  debugx_cmd      = Trepan::SubSubcommand::ShowDebugExcept.new(show_cmd.proc, 
                                                               debug_cmd,
                                                               cmd_name)

  debugx_cmd.run([])
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
trepanning-2.15.35 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-1.93.35 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-2.15.33 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-1.93.32 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.1.6 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.1.4 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.1.3 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.1.2 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.1.1 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.1.0 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.0.9 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.0.8 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.0.6 processor/command/show_subcmd/debug_subcmd/except.rb
trepanning-0.0.4 processor/command/show_subcmd/debug_subcmd/except.rb