I installed ruby-debug using this command: sudo gem install ruby-debug -y and then added the line to config/environments/development.rb: require "ruby-debug" I restarted webrick and put ''debugger'' in my code and tried to access the page with the debugger command, but it didn''t do anything. I''ve tried several times and restarted webrick, to no avail. rails 2.1.1 ruby1.8.6 ruby-debug-0.10.3 Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Eric J wrote:> I installed ruby-debug using this command: > sudo gem install ruby-debug -y > > and then added the line to config/environments/development.rb: > require "ruby-debug" > > I restarted webrick and put ''debugger'' in my code and tried to access > the page with the debugger command, but it didn''t do anything. I''ve > tried several times and restarted webrick, to no avail. > > rails 2.1.1 > ruby1.8.6 > ruby-debug-0.10.3 > > > EricWhere did you put the require statement and where did you put the debugger method for instance? -- Video training screencasts at http://www.digiprof.fr -- 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 put require "ruby-debug" at the top of config/environments/ development.rb. I just tried moving it to the bottom of the file and that didn''t seem to help either. I put the command ''debugger'' at the start of one of my controller methods, so it should hit the controller and then call debugger. On Jan 18, 7:13 am, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Eric J wrote: > > I installedruby-debugusing this command: > > sudo gem installruby-debug-y > > > and then added the line to config/environments/development.rb: > > require "ruby-debug" > > > I restarted webrick and put ''debugger'' in my code and tried to access > > the page with the debugger command, but it didn''t do anything. I''ve > > tried several times and restarted webrick, to no avail. > > > rails 2.1.1 > > ruby1.8.6 > >ruby-debug-0.10.3 > > > Eric > > Where did you put the require statement and where did you put the > debugger method for instance? > > -- > Video training screencasts athttp://www.digiprof.fr > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I think you need mongrel for debug try script/server mongrel On Jan 18, 6:21 am, Eric J <eric.d.john...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I put require "ruby-debug" at the top of config/environments/ > development.rb. I just tried moving it to the bottom of the file and > that didn''t seem to help either. > > I put the command ''debugger'' at the start of one of my controller > methods, so it should hit the controller and then call debugger. > > On Jan 18, 7:13 am, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > Eric J wrote: > > > I installedruby-debugusing this command: > > > sudo gem installruby-debug-y > > > > and then added the line to config/environments/development.rb: > > > require "ruby-debug" > > > > I restarted webrick and put ''debugger'' in my code and tried to access > > > the page with the debugger command, but it didn''t do anything. I''ve > > > tried several times and restarted webrick, to no avail. > > > > rails 2.1.1 > > > ruby1.8.6 > > >ruby-debug-0.10.3 > > > > Eric > > > Where did you put the require statement and where did you put the > > debugger method for instance? > > > -- > > Video training screencasts athttp://www.digiprof.fr > > -- > > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I installed mongrel and tried it, but no debugging luck. I tried adding Debugger.start after the ''require "ruby-debug"''. Is there a debug flag that you need to add to the start up command? On Jan 18, 8:27 am, Teedub <twscann...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think you need mongrel fordebug > try > script/server mongrel > > On Jan 18, 6:21 am, Eric J <eric.d.john...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I put require "ruby-debug" at the top of config/environments/ > > development.rb. I just tried moving it to the bottom of the file and > > that didn''t seem to help either. > > > I put the command ''debugger'' at the start of one of my controller > > methods, so it should hit the controller and then call debugger. > > > On Jan 18, 7:13 am, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > > Eric J wrote: > > > > I installedruby-debugusing this command: > > > > sudo gem installruby-debug-y > > > > > and then added the line to config/environments/development.rb: > > > > require "ruby-debug" > > > > > I restarted webrick and put ''debugger'' in my code and tried to access > > > > the page with the debugger command, but it didn''t do anything. I''ve > > > > tried several times and restarted webrick, to no avail. > > > > > rails 2.1.1 > > > > ruby1.8.6 > > > >ruby-debug-0.10.3 > > > > > Eric > > > > Where did you put the require statement and where did you put the > > > debugger method for instance? > > > > -- > > > Video training screencasts athttp://www.digiprof.fr > > > -- > > > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Well it started working, so maybe it was mongrel! Thanks for your help guys. On Jan 18, 8:27 am, Teedub <twscann...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think you need mongrel fordebug > try > script/server mongrel > > On Jan 18, 6:21 am, Eric J <eric.d.john...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I put require "ruby-debug" at the top of config/environments/ > > development.rb. I just tried moving it to the bottom of the file and > > that didn''t seem to help either. > > > I put the command ''debugger'' at the start of one of my controller > > methods, so it should hit the controller and then call debugger. > > > On Jan 18, 7:13 am, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > > Eric J wrote: > > > > I installedruby-debugusing this command: > > > > sudo gem installruby-debug-y > > > > > and then added the line to config/environments/development.rb: > > > > require "ruby-debug" > > > > > I restarted webrick and put ''debugger'' in my code and tried to access > > > > the page with the debugger command, but it didn''t do anything. I''ve > > > > tried several times and restarted webrick, to no avail. > > > > > rails 2.1.1 > > > > ruby1.8.6 > > > >ruby-debug-0.10.3 > > > > > Eric > > > > Where did you put the require statement and where did you put the > > > debugger method for instance? > > > > -- > > > Video training screencasts athttp://www.digiprof.fr > > > -- > > > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Eric J wrote:> I installed mongrel and tried it, but no debugging luck. I tried > adding Debugger.start after the ''require "ruby-debug"''. > > Is there a debug flag that you need to add to the start up command?script/server --debugger -- 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 -~----------~----~----~----~------~----~------~--~---
You can debug with webrick as well: as James Byrne stated, you must add --debugger when you run the webrick server. Also you don''t actually need to add the require statement neither Debugger.start if you are using rails 2.x . ''debug'' keywords will also be ignored if you aren''t running server with ''--debugger'', though it can be a danger in rails 1.x apps; ''debug'' statements will throw an error unless '' require "ruby-debug" '' is added.. and even in that case the server, at least webrick, will stop on the debug breakpoint even if you run a production server. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Byrne wrote:> Eric J wrote: >> I installed mongrel and tried it, but no debugging luck. I tried >> adding Debugger.start after the ''require "ruby-debug"''. >> >> Is there a debug flag that you need to add to the start up command? > > script/server --debuggerThis is the command correct ...!!! -- 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 -~----------~----~----~----~------~----~------~--~---
$ rdebug ./script/server would help (Have to enter "c" after starting) On Apr 7, 11:00 am, Daniel Tinivella <rails-mailing-l...@andreas- s.net> wrote:> James Byrne wrote: > > Eric J wrote: > >> I installed mongrel and tried it, but no debugging luck. I tried > >> adding Debugger.start after the ''require "ruby-debug"''. > > >> Is there a debug flag that you need to add to the start up command? > > > script/server --debugger > > This is the command correct ...!!! > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---