With Rails 2.3.2 and ruby-debug 0.10.3 very weird things are happening. Am I the only one? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Fernando Perez wrote:> With Rails 2.3.2 and ruby-debug 0.10.3 very weird things are happening. > Am I the only one?Here is one of the weird behavior: in development mode, if I edit a Model, I sometimes notice that the code doesn''t get reload when I issue the ''list'' command in the debugger. Therefore I bang my head not understanding why my edits don''t make any change. Therefore I have to ctrl+c and relaunch Thin. Anyone else ran in this problem previously? Best regards, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did that *ever* work? Development mode reloading only works between requests. Ruby-debug may also be caching its own copy of the source somewhere. --Matt Jones On Mar 21, 3:58 pm, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Fernando Perez wrote: > > With Rails 2.3.2 and ruby-debug 0.10.3 very weird things are happening. > > Am I the only one? > > Here is one of the weird behavior: in development mode, if I edit a > Model, I sometimes notice that the code doesn''t get reload when I issue > the ''list'' command in the debugger. Therefore I bang my head not > understanding why my edits don''t make any change. > > Therefore I have to ctrl+c and relaunch Thin. Anyone else ran in this > problem previously? >--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Jones wrote:> Did that *ever* work? Development mode reloading only works between > requests. Ruby-debug may also be caching its own copy of the source > somewhere.I think it happens when I open another terminal and use script/console. Well I wasn''t able to clearly identify the cause. Another weird behavior, is that when the debugger kicks in, sometimes I can directly access classes and objects without having to go into irb (I think that applies when debugger is in a model), sometimes I need to enter irb. Another one: when entering irb, I sometimes see lot''s of error/warning messages, and the request carries on as if the breakpoint didn''t exist. If I reissue the request and enter irb, the second time the request won''t carry on. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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''ve got the same problems I''m running as regular> $ ruby script/server --debuggerreach the break point> (rdb:5)trying to run irb> (rdb:5) irband> INTERNAL ERROR!!! Unrecognized switch: -debugger >...Full trace here: http://pastie.org/436603.txt But if you run debugger with RAILS_GEM_VERSION 2.2.2 or 2.1.2, everything works fine. irb by itself and script/console works fine under 2.3.2 Ubuntu Linux 8.10 kernel 2.6.27-7-generic ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] Temporary solution: run debugger through> $ rdebug ./script/serverHave to push "c" after starting up Anyway, better than nothing. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Vladimir Rybas wrote:> I''ve got the same problemsI saw somewhere that irb in debugger is an "experimental feature", so we''ll have to deal with it. Anyway I can do 99% of my debugging simply by using pp to figure how things will get evaluated and the state of the variables. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---