How to Debug

Hello

i am facing problem in Debugging in aptana studio. plz help me in debugging the code…And tell me Which is best IDE for Ror development. I m New to Ror

Try out RubyMine (http://www.jetbrains.com/ruby/)

It will automatically download libs for debugging and also it’s a very smart IDE

Try out RubyMine (http://www.jetbrains.com/ruby/)

It will automatically download libs for debugging and also it’s a very smart IDE

Can you also suggest a free one? About 80 € (VAT included) is a bit much for someone who is learning.

I believe that most RoR developers don't use an IDE. Just use a
decent editor with syntax highlighting and do the rest in the
terminal.

Colin

I would recomend using pry, pry-nav and pry-stack_explorer gems and debug using the terminal

Plus one for RubyMine, i think they allow free download for students and open source projects just in case if you fall in any of those categories. Terminal is fine and as somebody pointed out many ruby developers don’t use an IDE but for beginners i think a good IDE is a big help. RubyMine really made my life easy and coding fun when i had first started developing in ruby.

Rails has debugging tools built in, as a beginner I suggest starting with the inbuilt helpers, check out

http://guides.rubyonrails.org/debugging_rails_applications.html

http://railscasts.com/episodes/54-debugging-with-ruby-debug

Checkout the rails guides and rails cast links above.