Re: Debug in ROR

javier ramirez
2007-09-11T10:17:14Z

Hi,
> yap, install the ruby-debug gem and require it in environment.rb
>
> than just put anywhere you want "debugger", and in the server
output you
> will get a breakpoint-console-like access to your application flow.
>
If you want a much more comfortable front-end for that, you can install
Aptana RadRails. It uses ruby-debug behind the scenes, but you get
graphical breakpoints, inspection, stepping the code, etc...

Using it is as easy as telling RadRails to add a webrick or mongrel
server to your project, changing the start mode from ''run'' to
''debug''
and starting the server. After that you can comfortably toggle
breakpoints directly on the margin of your editor and use the usual
Eclipse debugging interface.

regards,

javier ramírez

p.s. there are other IDEs such as Komodo or Netbeans that also allow
this, but I work with RadRails


--~--~---------~--~----~------------~-------~--~----~
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