5 ms·
> Unique Debugging That caught my eye. How do you people debug C (on Linux) ? I'm tired of switching constantly between Sublime and GDB. I know there's a GDB p
by alcover 2y ago
> Unique Debugging
That caught my eye. How do you people debug C (on Linux) ? I'm tired of switching constantly between Sublime and GDB. I know there's a GDB plugin for Sublime but it's a pain to configure.
I need to edit my code AND set breaks in the same GUI window. There is DDD but it's old and odd looking. Tried Kate also but for some reason didn't like it.
- ReleaseCandidat 2y ago> I know there's a GDB plugin for Sublime but it's a pain to configure. Which did you try? The one using DAP https://packagecontrol.io/packages/Debugger https://packagecontrol.io/packages/Debugger works the samé as with VS Code. But you need to install Terminus too for it to work.
- alcover 2y agoThank you. I tried SublimeGDB. Yours seems nice but also heavy in config and integration into Sublime. What I'm after is the other way around : an editor around GDB. > you need to install Terminus It's not mentionned in the page. How would one know they need it ?
- ReleaseCandidat 2y agoThe only thing I needed to configure are the paths to the executables to debug and their command line arguments. This is for LLDB, but GDB works the samé, set the type to `gdb`. https://forum.sublimetext.com/t/debugger-for-c/73001/5 https://forum.sublimetext.com/t/debugger-for-c/73001/5 This adaptér is used for GDB https://github.com/WebFreak001/code-debug#debug https://github.com/WebFreak001/code-debug#debug Somewhere there is a mention of Terminus integration, practically it doesn't work without.
- PhilipRoman 2y agoThere is termdebug for Vim (should be included in Vim package itself) which lets you have a fancy TUI/editor together with the full power of GDB console.
- alcover 2y agoThanks, that's more like it. Though I don't fancy having to type `:Break` each time I need a break point. That should be a single click in the gutter.
- hexagonalc 2y agoThe normal workflow for this kind of thing in vim is that you set up some keyboard shortcut that suits you in your personal configuration. Most people aren't manually using command mode for things like this.
- righthand 2y agoHave you tried setting up a build command in Sublime Text to run gdb? I find it a bit easier for cli stuff that depending on a plugin. The json config is rather simple.