Top Level Namespace
- Includes:
- Trepan, Trepan::CmdParser, Trepan::Complete, Trepan::Util
Defined Under Namespace
Modules: IRB, Kernel, Testing, Trace, Trepan Classes: CmdParse, Display, DisplayMgr
Constant Summary
Constants included from Trepan
Trepan::CMD_INITFILE, Trepan::CMD_INITFILE_BASE, Trepan::DEFAULT_SETTINGS, Trepan::DEFAULT_START_SETTINGS, Trepan::PROGRAM, Trepan::VERSION
Instance Method Summary collapse
-
#display_signature(frame) ⇒ Object
return suitable frame signature to key display expressions off of.
- #dump_all ⇒ Object
- #event_processor(event, frame, arg = nil) ⇒ Object
- #five ⇒ Object
- #foo(str, num) ⇒ Object
- #print_display(mgr) ⇒ Object
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
add_command_file, add_startup_files, completion_method, copy_default_options, debug_program, interface=, process_cmdfile_setting, ruby_syntax_errors, setup_options, show_version, start, start_client, start_control, start_remote, started?, whence_file
Methods included from Trepan::Util
extract_expression, safe_repr, suppress_warnings, uniq_abbrev
Instance Method Details
#display_signature(frame) ⇒ Object
return suitable frame signature to key display expressions off of.
9 10 11 12 |
# File 'app/display.rb', line 9 def display_signature(frame) return nil unless frame frame.object_id end |
#dump_all ⇒ Object
121 122 123 124 125 126 |
# File 'app/eventbuffer.rb', line 121 def dump_all puts '-' * 40 @eventbuf.each do |e| puts @eventbuf.format_entry(e) if e end end |
#event_processor(event, frame, arg = nil) ⇒ Object
114 115 116 117 118 119 120 |
# File 'app/eventbuffer.rb', line 114 def event_processor(event, frame, arg=nil) begin @eventbuf.append(event, frame, arg) rescue p $! end end |
#five ⇒ Object
167 |
# File 'app/cmd_parse.rb', line 167 def five; 5 end |
#foo(str, num) ⇒ Object
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'app/frame.rb', line 149 def foo(str, num) x = 1 context = Debugger.current_context Debugger.skip do 0.upto(Debugger.current_context.stack_size-1) do |i| frame = Trepan::Frame.new(context) frame.index = i puts "Frame #{i}: #{frame.file}, line #{frame.line}, " + "class #{frame.klass}, thread: #{frame.thread}, " + "method: #{frame.method_name}" p frame.local_variables puts frame.describe(:maxwidth => 80, :callstyle=>:tracked) puts '-' * 30 end end end |
#print_display(mgr) ⇒ Object
166 167 168 169 |
# File 'app/display.rb', line 166 def print_display(mgr) mgr.all.each {|line| puts line} puts '=' * 40 end |