https://github.com/tejasbubane/debug-insert
Emacs minor mode to insert debug commands with keybinding
https://github.com/tejasbubane/debug-insert
emacs emacs-lisp emacs-mode
Last synced: 8 months ago
JSON representation
Emacs minor mode to insert debug commands with keybinding
- Host: GitHub
- URL: https://github.com/tejasbubane/debug-insert
- Owner: tejasbubane
- Created: 2019-01-29T12:47:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T14:28:13.000Z (over 7 years ago)
- Last Synced: 2025-03-25T09:51:25.681Z (about 1 year ago)
- Topics: emacs, emacs-lisp, emacs-mode
- Language: Emacs Lisp
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Debug Insert
[](https://travis-ci.org/tejasbubane/debug-insert)
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:
```elisp
(add-hook 'ruby-mode-hook (debug-insert-mode 1))
```
Optionally pass in a different debugger command you would like to use:
```elisp
;; 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!