I have started using RubyMine 6. I am working on a Rails 4, Ruby 2.1.1 project. I am not able to find how to debug into RubyMine with Pow as a server.
Can you please point me to the right direction?
I have started using RubyMine 6. I am working on a Rails 4, Ruby 2.1.1 project. I am not able to find how to debug into RubyMine with Pow as a server.
Can you please point me to the right direction?
I am able to debug from RubyMine using the remote debugging. I'm using RubyMine 6, Rails 3, Ruby 2.1.1.
First create a .powenv
file and add:
export RUBY_DEBUG_PORT=1234
export POW_WORKERS=1
Add the following gems to your Gemfile
:
gem 'ruby-debug-ide'
gem 'debase'
Create a new initializer start_debugger.rb
and add the following content:
if ENV['RUBY_DEBUG_PORT']
require 'ruby-debug-ide'
Debugger.start_server nil, ENV['RUBY_DEBUG_PORT'].to_i
end
Now in RubyMine you should be able to add a new run configuration using the default template for Ruby remote debug
setting the local and remote folders to the root of your Rails app.
Actually, you can just use Pow to proxy yourapp.dev domain to your localhost:3000 by
echo 3000 > ~/.pow/yourapp
And then, access yourapp.dev and debug your app in Rubymine as normal