Skip to content

Instantly share code, notes, and snippets.

@jondeandres
Created January 20, 2014 20:35
Show Gist options
  • Save jondeandres/8528614 to your computer and use it in GitHub Desktop.
Save jondeandres/8528614 to your computer and use it in GitHub Desktop.
Dynamic debugger for Emacs/ruby
# -*- 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