Forum: Ruby on Rails breakpointer doesn't show local variables

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
10c122532c00465b809dbf9dc35806a7?d=identicon&s=25 Paolo Negri (Guest)
on 2007-01-19 16:29
(Received via mailing list)
Hi there

On one of my machines (ubuntu 6.10) I'm experiencing some weird
problems.

Breakpointer doesn't recognize the local variables, if in a
breakpointer session I type

local_variables

the reply is always

["id", "block", "_"]

while in the context where breakpoint is invoked there are many other
local variables.
All the instance variables are correctly recognized and I can inspect
and work with them as usual.
Even the source_lines method works fine

At this point I'm quite sure something is off in this machine setup.

Does anyone have a clue?

Thanks

Paolo
74592905ef38cd087e5b73c0955aaa18?d=identicon&s=25 linus1412 (Guest)
on 2007-01-19 16:30
(Received via mailing list)
Hi,

I've previously had this problem too.

Rebboting my laptop solved it for me.  Very strange though.

Martin
95dd62ef5e0173ee7a4fdbe3544c0c4b?d=identicon&s=25 Dave Myron (orangechicken)
on 2007-01-19 16:31
(Received via mailing list)
I'm running into the same thing also on Ubuntu 6.10. Started noticing
it about the same time you did. Are we the same person? ;)

Hopefully my confirmation of the problem will draw some attention to
our predicament. Certainly makes debugging a little difficult, doesn't
it!

Dave
95dd62ef5e0173ee7a4fdbe3544c0c4b?d=identicon&s=25 Dave Myron (orangechicken)
on 2007-02-03 02:23
(Received via mailing list)
No ideas to this yet, eh? It's truly the buggiest thing EVAR!
Debugging is near impossible without being able to look at local
variables.
Bce1d1b7c3ec7b577dcb42e254899e6b?d=identicon&s=25 Michael Schuerig (Guest)
on 2007-02-03 02:40
(Received via mailing list)
On Saturday 03 February 2007 02:23, orangechicken wrote:
> No ideas to this yet, eh? It's truly the buggiest thing EVAR!
> Debugging is near impossible without being able to look at local
> variables.

No, breakpointer isn't buggy at all. Displaying local variables just
doesn't work with Ruby 1.8.5, which is a well-known limitation that has
been mentioned on this list quite a few times.

For a real debugger, consider ruby-debug

 http://www.datanoise.com/ruby-debug

Michael

--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/
95dd62ef5e0173ee7a4fdbe3544c0c4b?d=identicon&s=25 Dave Myron (orangechicken)
on 2007-02-13 02:57
(Received via mailing list)
But we're not using v1.8.5 - we're on 1.8.4.

Paolo, if you're still getting this try using this instead of the
plain call to breakpoint: Breakpoint.breakpoint(nil,binding)

That works for me. YMMV, Dave
10c122532c00465b809dbf9dc35806a7?d=identicon&s=25 Paolo Negri (Guest)
on 2007-02-15 10:57
(Received via mailing list)
On 13/02/07, orangechicken <dave@orangechicken.com> wrote:
>
> But we're not using v1.8.5 - we're on 1.8.4.
>
> Paolo, if you're still getting this try using this instead of the
> plain call to breakpoint: Breakpoint.breakpoint(nil,binding)
>
> That works for me. YMMV, Dave

Thanks Dave.
This topic is locked and can not be replied to.