なひです。 > From: 岩崎 弘孝 [mailto:IH000667 / mb.taiyokogyo.co.jp] > Sent: Friday, March 22, 2002 4:45 PM > ruby -r debug hoge.rb > > とデバッガーをつけるとディレクトリー内にファイルが無いとデバッガーが止 > まります。サーバ上のファイルを持たないディレクトリーが多数あります。 一々 > 止まると困るのでこれを止めずに特定行まで実行を継続したいのですが、 > どのようにすれば良いのですか? こんな感じです。 $ ruby -rdebug foo.rb Debug.rb Emacs support available. foo.rb:1:for i in 0..99 (rdb:1) list [-4, 5] in foo.rb => 1 for i in 0..99 2 File.open( "noSuchFileOrDirectory", "r" ) rescue Errno::ENOENT 3 end 4 5 puts "Stop here" (rdb:1) break 5 Set breakpoint 1 at foo.rb:5 (rdb:1) cont foo.rb:2: `No such file or directory - "noSuchFileOrDirectory"' (Errno:: ENOENT) from foo.rb:1 foo.rb:2: File.open( "noSuchFileOrDirectory", "r" ) rescue Errno::ENOENT (rdb:1) catch off Clear catchpoint. (rdb:1) cont foo.rb:2: `No such file or directory - "noSuchFileOrDirectory"' (Errno:: ENOENT) foo.rb:2: `No such file or directory - "noSuchFileOrDirectory"' (Errno:: ENOENT) ... foo.rb:2: `No such file or directory - "noSuchFileOrDirectory"' (Errno:: ENOENT)foo.rb:2: `No such file or directory - "noSuchFileOrDirectory"' (Errno::ENOENT) Breakpoint 1, toplevel at foo.rb:5 foo.rb:5:puts "Stop here" (rdb:1)