Set up RubyMine2 to run and debug a Sinatra app
Can anyone provide setup instructions for running and debugging a sinatra app in Rubymine?开发者_C百科
Not sure if you found your answer on the JetBrains forum, but if not, here's what works for me in RubyMine 3.2.4.
My config.ru looks like:
require './app'
run Sinatra::Application
In a simple app.rb file, put a break point on the "Hello World" line below:
get '/' do
"Hello World"
end
Just right-click on the app.rb or config.ru file, and select 'Debug "app"' from the context menu. You should hit your break point when you load the page.
Hope this helps.
With the current RubyMine (5.4) you can run it by creating a Rack Run/Debug configuration and specifying path to your config.rb file in there.
精彩评论