News for hackers. Stuff that matters.
Re:Debugging in Vim by arunc on Monday May 13, 2019 @12:48AM (#19896498)
GDB text user interface [1] is much easier and productive to use than this albeit it doesn't offer syntax highlighting.

[1] https://ftp.gnu.org/old-gnu/Manuals/gdb/html_chapter/gdb_19....

Re:Debugging in Vim by wgml on Monday May 13, 2019 @05:53AM (#19897611)
GDB 8.3, just released [1], introduced support for syntax highlighting.

[1] https://lists.gnu.org/archive/html/info-gnu/2019-05/msg00007...

Re:Debugging in Vim by pksadiq on Monday May 13, 2019 @05:13AM (#19897364)
I find GNU Emacs M-x gdb pretty productive when used with M-x gdb-many-windows. Especially, I like the way I can browse and look deep the local variables (middle-click [or Shift-Enter] on any pointer variables in "local" window, which opens speedbar with its contents), along with other common features.
Re:Debugging in Vim by dan00 on Monday May 13, 2019 @04:12AM (#19897126)
From my experience cgdb (https://cgdb.github.io/) is the more stable TUI interface.
Re:Debugging in Vim by ifoundthetao on Monday May 13, 2019 @12:28PM (#19900895)
With GDB you can use all of the glory that is printf, inside of the termal. This means terminal control codes, that you can use to change colors on the screen for syntax highlighting.

peda is an excellent project that uses this to great success: https://github.com/longld/peda

All of that being said... it's really not very practical. (: But, it CAN be done, and it is done, I'm just glad I'm not the person doing it.

Re:Debugging in Vim by flukus on Monday May 13, 2019 @02:48AM (#19896841)
The keybindings are for to emacs like for me to consider it easy to use :)

It is much more powerful and productive though, reverse debugging and scripting offer far more power than just stepping through code in an IDE. It's probably possible to do that through vim, but at some point your basically using the CLI interface and have to learn GDB anyway.

Re:Debugging in Vim by archgoon on Monday May 13, 2019 @02:43AM (#19896828)
So, several years ago, I found that using the TUI environment increased the likelihood that gdb would crash (typically also in conjunction with the disassembly view). I do not know if it has become more stable in recent years; has anyone else noticed this more recently, or has it become more stable?