3 ms·
Have you tried to use GDB from emacs? It's like Visual Studio
by nodivbyzero 11y ago
Have you tried to use GDB from emacs? It's like Visual Studio
- prewett 11y agoHa! It's nothing like Visual Studio. GIMP is closer to Photoshop than Emacs + GUD/GDB is to Visual Studio. However, I do use Emacs with GUD and it works okay. If you are addicted to VI-style editing (like myself), you can use viper. You'll want to add some keybinding to your .emacs. The following are the VS6 bindings I use: ;; Add VisualStudio-style debugging keys ;; Add convenient "until" command to gdb mode (swiped off the web) (add-hook `gdb-mode-hook (lambda () (gud-def gud-until "until %f:%l" "C-u" "Execute until current line."))) ;; Add a "jump" command (supposed to have been included in gud.el) (add-hook `gdb-mode-hook (lambda () (gud-def gud-jump "tbreak %f:%l\njump %f:%l" "\C-j" "Relocate next instruction to line at point in source buffer."))) (global-set-key [f9] 'gud-break) (global-set-key [f11] 'gud-step) (global-set-key [f10] 'gud-next) (global-set-key [f5] 'gud-cont) (global-set-key [\S-f11] 'gud-finish) (global-set-key [\C-f10] 'gud-until) (global-set-key [\C-\S-f10] 'gud-jump) ; Equivalent to VC's Set Next Statement
- benaiah 11y agoThese days evil is the goto vim-keybinding package - viper is unmaintained IIRC and hasn't been for some time, and evil works tremendously well.