Skip to content

Instantly share code, notes, and snippets.

@ivanoats
Created October 22, 2010 17:28
Show Gist options
  • Save ivanoats/640994 to your computer and use it in GitHub Desktop.
Save ivanoats/640994 to your computer and use it in GitHub Desktop.
if File.exists?(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
require 'ruby-debug'
Debugger.wait_connection = true
Debugger.start_remote
File.delete(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment