Skip to content

Instantly share code, notes, and snippets.

@tonycoco
Created April 10, 2012 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tonycoco/2348218 to your computer and use it in GitHub Desktop.
Save tonycoco/2348218 to your computer and use it in GitHub Desktop.
POW! Debugger
# Debugging with POW!
#
# Setup POW!'s ~/.powconfig with the following:
# export POW_WORKERS=1
# export POW_TIMEOUT=3600
#
# Run `bundle exec rdebug -c` in the Terminal to start the debugger
if (Rails.env.development? || Rails.env.test?) && !(defined?($rails_rake_task) && $rails_rake_task)
puts "=> Debugger enabled"
require 'debugger'
Debugger.settings[:autoeval] = true
Debugger.settings[:reload_source_on_change] = true
Debugger.settings[:autolist] = 1
Debugger.start_remote unless Rails.env.test? # Disable for Cucumber
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment