From: Mauricio Fernandez Date: 2006-09-19T18:46:56+09:00 Subject: Re: What Version of rail/ruby? On Tue, Sep 19, 2006 at 04:47:23AM +0900, Gregory Brown wrote: > On 9/16/06, Victor Reyes wrote: > >I will try 1.8.5. I wonder if I need to uninstall 1.8.4 first and start > >from scratch. I actually don't mind to start from scratch since I have not > >done anything yet. > > > I think the problem with 1.8.5 is with breakpoint, which can be > important for debugging Rails apps, but there is a patch available > that fixes it (I think). breakpoint (actually, Binding.of_caller, which it depended on) relies on a bug in Ruby that was fixed in 1.8.5 [1]. If you want to keep debugging using breakpoints under 1.8.5, there are two possibilities: * use ruby-debug [2] * use call_stack's alternative Binding.of_caller [3]. If you choose the latter, all you have to do is load breakpoint185.rb in your server, e.g. ruby -rbreakpoint185 script/server and proceed as usual (see [3] for information relevant to RubyGems users, though). 1. http://eigenclass.org/hiki.rb?breakpoint+breaking+in+1.8.5 2. http://raa.ruby-lang.org/project/ruby-debug/ 3. http://eigenclass.org/hiki.rb?call_stack+0.1.0 -- Mauricio Fernandez - http://eigenclass.org - singular Ruby