3 ms·
> gdb(..) smashing tui with app output this got me losing my mind. How/why propose this tempting TUI mode when the result looks like a broken arcade game ?? H
by alcover 2y ago
> gdb(..) smashing tui with app output
this got me losing my mind. How/why propose this tempting TUI mode when the result looks like a broken arcade game ??
How do you people comfortably debug C in Linux ? I know VSCode looks nice but by principle I can't accept to use such a beast to basically edit code..
- feelamee 2y agoas I said - this easy to fix once and for ever Also not all apps write to stdout/stderr by default. > How do you people comfortably debug C in Linux ? It depends on what comfortable is for you. Most of my pc experience is terminal and browser and this is comfortable for me. I just use gdb for debugging. Sometimes trying lldb
- marssaxman 2y ago> How do you people comfortably debug C in Linux? same way I debug everything, everywhere: logging.
- debeloo 2y agoThat not very environmentally friendly.
- dima55 2y agoemacs. Worked great for decades and works great today. Learn it.
- imron 2y ago> How do you people comfortably debug C in Linux ? I just got comfortable using gdb/lldb from the terminal. Once you get used to it, it's fine (albeit not pretty).
- dan00 2y agoI‘m using cgdb, which is a minimal ncurses wrapper around gdb. It‘s a lot better than the TUI of gdb.
- billfruit 2y agoUse Emacs to drive gdb (through the GUD mode) gives a much more ergonomic interface. It highlights the line of code being traced in the code window.
- baruch 2y agoThe advantage for text based interfaces is that they work over ssh/tmate over trans atlantic connections whereas the GUI tools would suffer greatly. It just works everywhere and if you learn it, it will be just as good as a gui debugger. Potentially even more ergonomic without hunting for options with a mouse.
- Icathian 2y agoTermdebug works great with gdb, and I get my usual editor features as well as the full functionality of gdb. Seems fine to me. Before I switched from emacs I had an equivalently good setup with dap-mode.