Top Level Namespace
Defined Under Namespace
Modules: CodeRay, IRB, Kernel, 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. 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
- #babe(a, b, *rest) ⇒ Object
- #bar(a, b, c) ⇒ Object
- #bat(a, b, &block) ⇒ Object
- #baz(a, b, c = 5) ⇒ Object
- #bp_status(brkpts, i) ⇒ Object
-
#display_signature(frame) ⇒ Object
return suitable frame signature to key display expressions off of.
- #five ⇒ Object
- #foo ⇒ Object
- #msg(msg) ⇒ Object
- #print_display(mgr) ⇒ Object
-
#square(x) ⇒ Object
:nodoc.
- #tmpdir ⇒ Object
Methods included from Trepan::Disassemble
disassemble_split, mark_disassembly
Methods included from Trepan::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::Complete
complete_token, complete_token_filtered, complete_token_filtered_with_next, complete_token_with_next, next_token
Methods included from Trepan::ThreadHelper
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, start_client, whence_file
Instance Method Details
#babe(a, b, *rest) ⇒ Object
271 272 273 274 |
# File 'app/frame.rb', line 271 def babe(a, b, *rest) puts '=' * 10 print_stack_trace(RubyVM::Frame.current) end |
#bar(a, b, c) ⇒ Object
252 253 254 255 256 |
# File 'app/frame.rb', line 252 def (a, b, c) puts '=' * 10 print_stack_trace(RubyVM::Frame.current, ) end |
#bat(a, b, &block) ⇒ Object
265 266 267 268 |
# File 'app/frame.rb', line 265 def bat(a, b, &block) puts '=' * 10 print_stack_trace(RubyVM::Frame.current) end |
#baz(a, b, c = 5) ⇒ Object
259 260 261 262 |
# File 'app/frame.rb', line 259 def baz(a, b, c=5) puts '=' * 10 print_stack_trace(RubyVM::Frame.current) 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 |
#five ⇒ Object
164 |
# File 'app/cmd_parse.rb', line 164 def five; 5 end |
#foo ⇒ Object
193 194 195 196 |
# File 'app/core.rb', line 193 def foo(dbg) p 'foo here' dbg.debugger(:immediate=>true) end |
#msg(msg) ⇒ Object
242 243 244 |
# File 'app/frame.rb', line 242 def msg(msg) puts msg end |
#print_display(mgr) ⇒ Object
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
315 316 317 |
# File 'lib/trepanning.rb', line 315 def square(x) # :nodoc x * x end |
#tmpdir ⇒ Object
96 97 98 |
# File 'app/file.rb', line 96 def tmpdir 'to conflict with the other tmpdir' end |