Top Level Namespace

Defined Under Namespace

Modules: CodeRay, IRB, Kernel, Redcarpet, Testing, Trepanning Classes: C, CmdParse, Display, DisplayMgr, MyClass, Trepan

Constant Summary collapse

SCRIPT_ISEQS__ =

SCRIPT_ISEQS__ is like SCRIPT_LINES__ in a patched Ruby 1.9/2.1. Setting this variable to a hash causes instruction sequences to be added in this has under their “filename” as a key. More accurately though, the “filename” is instruction sequence name that was given as in the “filename” parameter when the instruction sequence was generated. Each value is an array of instruction sequences that share that name.

{}
ISEQS__ =
{}
SCRIPT_LINES__ =
{}

Constants included from Trepan::Frame

Trepan::Frame::DEFAULT_STACK_TRACE_SETTINGS

Instance Method Summary collapse

Methods included from Trepan::Disassemble

disassemble_split, mark_disassembly

Methods included from Trepan::Condition

valid_condition?

Methods included from Trepan::CmdParser

meth_for_parse_struct, meth_for_string, parse_breakpoint, parse_breakpoint_no_condition, parse_list, parse_location, parse_terminal, resolve_method

Methods included from Trepan::Markdown

render

Methods included from Trepan::Complete

complete_token, complete_token_filtered, complete_token_filtered_with_next, complete_token_with_next, next_token

Methods included from Trepan::ThreadHelper

get_thread

Methods included from Trepan::Frame

all_param_names, c_params, eval_string, file, format_stack_call, format_stack_entry, location_equal, offset_for_return, param_names, print_stack_entry, print_stack_trace, print_stack_trace_from_to, set_return_value, value_returned

Methods included from Trepan::Util

extract_expression, safe_repr, suppress_warnings, uniq_abbrev

Methods included from Trepanning

debug_program, #file_match_pat, #filter_scripts, #find_iseq_with_line_from_iseq, #find_iseq_with_line_from_iseq2, #find_iseqs, #find_iseqs_with_lineno, #find_scripts, ruby_syntax_errors, run_program, start_client, whence_file

Instance Method Details

#babe(a, b, *rest) ⇒ Object



278
279
280
281
# File 'app/frame.rb', line 278

def babe(a, b, *rest)
    puts '=' * 10
    print_stack_trace(RubyVM::Frame.get)
end

#bar(a, b, opts) ⇒ Object



260
261
262
263
# File 'app/frame.rb', line 260

def bar(a, b, opts)
    puts '=' * 10
    print_stack_trace(RubyVM::Frame.get, opts)
end

#bat(a, opts, &block) ⇒ Object



272
273
274
275
# File 'app/frame.rb', line 272

def bat(a, opts, &block)
    puts '=' * 10
    print_stack_trace(RubyVM::Frame.get, opts)
end

#baz(a, opts, c = 5) ⇒ Object



266
267
268
269
# File 'app/frame.rb', line 266

def baz(a, opts, c=5)
    puts '=' * 10
    print_stack_trace(RubyVM::Frame.get, opts)
end

#bp_status(brkpts, i) ⇒ Object



124
125
126
127
128
129
130
# File 'app/brkptmgr.rb', line 124

def bp_status(brkpts, i)
  puts "list size: #{brkpts.list.size}"
  puts "set size: #{brkpts.set.size}"
  puts "max: #{brkpts.max}"
  p brkpts
  puts "--- #{i} ---"
end

#display_signature(frame) ⇒ Object

return suitable frame signature to key display expressions off of.



8
9
10
11
# File 'app/display.rb', line 8

def display_signature(frame)
  return nil unless frame
  frame.iseq.object_id
end

#fiveObject



164
# File 'app/cmd_parse.rb', line 164

def five; 5 end

#foo(width) ⇒ Object



162
163
164
165
# File 'app/core.rb', line 162

def foo(dbg)
    p 'foo here'
    dbg.debugger
end

#msg(msg) ⇒ Object



246
247
248
# File 'app/frame.rb', line 246

def msg(msg)
    puts msg
end


163
164
165
166
# File 'app/display.rb', line 163

def print_display(mgr)
  mgr.all.each {|line| puts line}
  puts '=' * 40
end

#square(x) ⇒ Object

:nodoc



311
312
313
# File 'lib/trepanning.rb', line 311

def square(x) # :nodoc
    x * x
end

#tmpdirObject



95
96
97
# File 'app/file.rb', line 95

def tmpdir
  'to conflict with the other tmpdir'
end