Created
April 10, 2012 03:54
-
-
Save tonycoco/2348218 to your computer and use it in GitHub Desktop.
POW! Debugger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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