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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With