Skip to content

Emacs minor mode to insert debug commands with keybinding

Notifications You must be signed in to change notification settings

tejasbubane/debug-insert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Debug Insert

Build Status

Emacs minor mode to insert debug commands a point. Detects major mode and uses default commands but also allows providing custom commands for different languages.

Usage

Enable as a hook to your language:

(add-hook 'ruby-mode-hook (debug-insert-mode 1))

Optionally pass in a different debugger command you would like to use:

;; Use `binding.pry` instead of the default `byebug` for ruby code
(add-hook 'ruby-mode-hook (lambda () (debug-insert-mode 1 "binding.pry")))

Currently these commands are supported:

Language Debug Command
Ruby byebug
Javascript debugger
Emacs Lisp (debug)
Elixir IEx.pry

PRs for adding more languages are always welcome!

About

Emacs minor mode to insert debug commands with keybinding

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages