Skip to content

Instantly share code, notes, and snippets.

@hjdivad
Created October 31, 2011 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hjdivad/1328008 to your computer and use it in GitHub Desktop.
Save hjdivad/1328008 to your computer and use it in GitHub Desktop.
# environments/development.rb
# require ruby-debug if you're not in bundler
Signal.trap("USR1"){ debugger }
# Then in bash (alias for convenience)
# kill -usr1 `cat tmp/pid/server.pid`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment