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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I''ve previously had this problem too. Rebboting my laptop solved it for me. Very strange though. Martin On Jan 15, 1:41 am, "Paolo Negri" <hungryl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Feb 2, 5:39 pm, Michael Schuerig <mich...-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org> wrote:> 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:mich...-q5aiKMLteq5BV9CJdY2HSA@public.gmane.org://www.schuerig.de/michael/--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 13/02/07, orangechicken <dave-Qx7zuz49mbGDXAOJFZ9NEwC/G2K4zDHf@public.gmane.org> 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, DaveThanks Dave. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---