Configure RubyMine2 to Launch and Debug a Sinatra Application

Can someone provide installation instructions for running and debugging a sinatra application in Rubymine?

+4
source share
2 answers

Not sure if you found your answer on the JetBrains forum, but if not, this is what works for me in RubyMine 3.2.4.

My config.ru looks like this:

require './app' run Sinatra::Application 

In a simple app.rb file, place the breakpoint on the line "Hello World" below:

 get '/' do "Hello World" end 

Just right-click the app.rb or config.ru file and select "Debug" application "" from the context menu. If you are loading a page, you must click the break point.

Hope this helps.

+5
source

With RubyMine (5.4), you can run it by creating a Rack Run / Debug configuration and specifying the path to your config.rb file.

+1
source

All Articles