Search code examples
ruby-on-railsrubydebuggingrubymine

Ruby on rails app debug and develop


I have been in Ruby on Rails for a while. Now I clone a very nice project from GitHub and i want to debug it with RubyMines.

Can someone please sugest me how do i proceed further? Do I start with Controllers? or Models? or Route.rb file?

I want to understand the app thoroughly and develop the next version with new GUI.

Thanks.


Solution

  • Set your breakpoints wherever you want, in your models, controllers, or views. Then just run the debugger and go to the app in your browser. Whenever the application hits the part of the code where you set your breakpoint, it will stop and then you can go back to RubyMine and debug accordingly. It's really a fantastic feature.

    Let me know if you if you're having any trouble with it.