Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5476 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Methods for displaying source list and call stack in breakpoint command bundle.

Reported by: takiuchi@drecom.co.jp Assigned to: David
Priority: normal Milestone: 1.x
Component: Railties Version: 1.1.1
Severity: normal Keywords: breakpoint
Cc: bitsweat

Description

This patch adds two methods to display source list and callstack while handling breakpoint on irb.

For example:

irb(#<TopController:0x40822a68>):002:0> show_source_list
0001  class TopController < ApplicationController
0002    def show
0003->    breakpoint
0004    end
0005    
0006    def index
0007    end
0008    
=> "/path/to/rails/root/app/controllers/top_controller.rb"
irb(#<TopController:0x40822a68>):004:0> show_call_stack 3
vendor/rails/railties/lib/breakpoint.rb:536:in `breakpoint'
vendor/rails/railties/lib/breakpoint.rb:536:in `breakpoint'
app/controllers/top_controller.rb:3:in `show'
=> "/path/to/rails/root/app/controllers/top_controller.rb:3"

Attachments

display_source_list_and_call_stack_for_breakpoint_command_bundle.diff (1.3 kB) - added by takiuchi@drecom.co.jp on 06/23/06 06:02:08.
patch file.

Change History

06/23/06 06:02:08 changed by takiuchi@drecom.co.jp

  • attachment display_source_list_and_call_stack_for_breakpoint_command_bundle.diff added.

patch file.

06/23/06 22:34:55 changed by bitsweat

  • cc set to bitsweat.

07/05/06 02:02:31 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [4545]) Added show_source_list and show_call_stack to breakpoints to make it easier to get context (closes #5476) [takiuchi@drecom.co.jp]