Put something after the "debugger" statement, such as, puts "hello\n"
Ruby basically does tail-recursion, so the in the call to "debugger"
the stack frame of before_update_save() is gone.

On Jun 20, 5:18 pm, patrick99e99 <[email protected]> wrote:
> So I have a controller where I did:
>
>  def before_update_save(post)
>     debugger
>   end
>
> ...
>
> But this ends up being not useful because the debugger seems to have
> no context, and you can see here:
>
> (rdb:34) self
> *** Unknown command: "self".  Try "help".
> (rdb:34) post
> *** Unknown command: "post".  Try "help".
>
> Is there a reason for this?  Is there a way to get the debugger to
> allow me to actually inspect things?
>
> -patrick

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to