Looks like that's actually the right thing to do.  rdebug with MRI
does the same thing.  It's heading off into the Rails' implementation
of Class#const_missing looking for Car.

JRuby rdebug log attached.

Pete

On 10/23/07, Chris Nelson <[EMAIL PROTECTED]> wrote:
> Doh!  I should have updated jruby-trunk before I did that, my bad.  Yes,
> that was with the latest code in jruby-debug trunk.  Just right now I was
> debugging a very simple restful controller list method.  It fails
> consistently for me trying to step into Car.find(:all) -- it ends up
> stepping into dependencies.rb for some reason.  Stepping into code works
> fine outside of rails for me, tho.
>
> You can generate my silly little example app as follows: script/generate
> scaffold_resource car make:string year:integer
>
> I'll try to blog tonight details about how to get up and running so people
> can play along at home that want to.
>
> --Chris
>
./script\server:2 require File.dirname(__FILE__) + '/../config/boot'
(rdb:1) break cars_controller.rb:5
Set breakpoint 1 at cars_controller.rb:5
(rdb:1) cont
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-10-23 01:24:39] INFO  WEBrick 1.3.1
[2007-10-23 01:24:39] INFO  ruby 1.8.5 (2007-10-23) [java]
[2007-10-23 01:24:39] INFO  WEBrick::HTTPServer#start: pid=29752800 port=3000
Breakpoint 1 at cars_controller.rb:5
C:/Temp/work/demo/app/controllers/cars_controller.rb:5 @cars = Car.find(:all)
(rdb:4) step
C:/eclipseWorkspaceQT/jruby_trunk/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:463
 if [Object, Kernel].include?(self) || parent == self
(rdb:4) list
[458, 467] in 
C:/eclipseWorkspaceQT/jruby_trunk/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb
   458    
   459  end
   460  
   461  class Class
   462    def const_missing(class_id)
=> 463      if [Object, Kernel].include?(self) || parent == self
   464        super
   465      else
   466        begin
   467          begin
(rdb:4) var l
  class_id => Car
  e => 
  parent_qualified_name => 
  qualified_name => 
(rdb:4) 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to