Skip to content

Instantly share code, notes, and snippets.

@costa
Created April 2, 2012 22:46
Show Gist options
  • Save costa/2287752 to your computer and use it in GitHub Desktop.
Save costa/2287752 to your computer and use it in GitHub Desktop.
put this in your rails project's ./config/environments/development.rb (or equivalent); see http://mines.mouldwarp.com/2012/04/pow-guard-and-rdebug-staying-in-web-app.html
if ENV['RUBY_DEBUG_PORT']
Debugger.start_remote nil, ENV['RUBY_DEBUG_PORT'].to_i
else # optional
Debugger.start_remote
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment