10th
Mon
./script/breakpointer機能拡張パッチが採用されました
This article was migrated from http://rai
Railsコア(RailTies)に対する./script/b
機能拡張パッチが採用されました。
-
[PATCH] Methods for displaying
source list and call stack in breakpoint command bundle. - Changeset 4545
1 irb(#<topcontroller:0x4082 2a68>):002:0> show_sourc e_list 2 0001 class TopControl ler < Applicatio nControlle r 3 0002 def show 4 0003-> breakpoint 5 0004 end 6 0005 7 0006 def index 8 0007 end 9 0008 10 => "/path/to/r ails/root/ app/contro llers/top_ controller .rb" 11 irb(#</topcontro ller:0x408 22a68><topcontrol ler:0x4082 2a68>):004:0> show_call_ stack 3 12 vendor/rails/railties/lib/breakpoint .rb:536:in `breakpoint ' 13 vendor/rai ls/railtie s/lib/brea kpoint.rb: 536:in `breakpoint ' 14 app/contro llers/top_ controller .rb:3:in `show' 15 => "/path/to/r ails/root/ app/contro llers/top_ controller .rb:3" 16 </topcontrol ler:0x40822a68 >
ブレークポイント周辺のソースリストの表示と、コールスタックの表示です。
show_sourc
の方は、引数に行数を指定する事で、表示するソースリストの
範囲を変えることができます。
あとはステップ実行ができるようになれば、普通のデバッガど同等の事ができるようになりそうですね。
This article was migrated from http://rai
posted by
genki
on Mon 10 Jul 2006
at 01:10