# Debug in ROR

**URL:** <https://www.ruby-forum.com/t/debug-in-ror/114320>\
**Category:** Rails\
**Created:** [September 11, 2007, 11:32am UTC](https://www.ruby-forum.com/t/debug-in-ror/114320 "2007-09-11T11:32:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 11, 2007, 11:32am UTC](https://www.ruby-forum.com/t/debug-in-ror/114320/1 "2007-09-11T11:32:03Z")

</div>

How to debug in ruby on rails.Can anyone tell??

Any help will be appreciate

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 11, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/debug-in-ror/114320/2 "2007-09-11T12:02:59Z")

</div>

Anand duhan wrote:

> How to debug in ruby on rails.Can anyone tell??
> 
> Any help will be appreciate

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.

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 11, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/debug-in-ror/114320/3 "2007-09-11T12:19:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 11, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/debug-in-ror/114320/4 "2007-09-11T16:26:53Z")

</div>

On Sep 11, 2:30 am, Anand duhan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How to debug in ruby on rails.Can anyone tell??
> 
> Any help will be appreciate

[http://catb.org/~esr/faqs/smart-questions.html](http://catb.org/~esr/faqs/smart-questions.html)
