Guys,

Well, I've spent a good amount time the past day or two trying to understand
why stepping through code in a Rails controller doesn't work.  It stops on
my breakpoint ok, but when I try to step to the next line it just continues
without stopping on the next line.  I think I've finally isolated where the
problem is happening, but am not sure why.  Martin or Peter, maybe you could
help shed some light.

I've been running rdebug while connected to jruby using a JPDA debugger
(debugging the debugger!) so I can step thru jruby-debug code.  After
stopping on my controller breakpoint in rdebug, I type n to advance to the
next line.  This calls Context.step_over where I have jpda breakpoint
enabled.  At this point, the debugContext has a stack size of 8 and
therefore sets the destFrame to 8.  I also added a JPDA breakpoint into the
DebugEventHook RUBY_EVENT_LINE handling, and when this event fires for the
next line of my controller the debugContext has a stack size of 0 (and no
frames).   Since it is checking stacksize == destFrame to determine if it
should stop the jruby debugger, it doesn't realize it should stop and just
continues on.

>From here, I'll see if I can track down where it is losing frames.  If
anyone has any ideas, I'm all ears.

--Chris

Reply via email to