Created
January 20, 2014 20:35
-
-
Save jondeandres/8528614 to your computer and use it in GitHub Desktop.
Dynamic debugger for Emacs/ruby
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
# -*- mode: snippet -*- | |
# name: debug | |
# key: db | |
# -- | |
require ` (let ((version (shell-command-to-string "rbenv version"))) | |
(if (string-match-p "^2" version) | |
(concat "'byebug';byebug") | |
(concat "'ruby-debug';debugger"))) | |
` | |
$0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment