4 ms·
The very last line mentions: > Check out gdb’s “tui” mode But that should be in the first paragraph. TUI mode shows the source code and the current line. This
by justinmk 11y ago
The very last line mentions:
> Check out gdb’s “tui” mode
But that should be in the first paragraph. TUI mode shows the source code and the current line. This is like the difference between `ed` and `vi`: you can see the source code that you're debugging instead of mashing `bt` or whatever again and again.
To use gdb's TUI mode, simply include the `-tui` argument at the command line:
gdb -tui path/to/bin
or, at any time while running gdb, press `ctrl-x ctrl-a`.
- ge0rg 11y agoWow, -tui is a real game-changer. I've struggled with tools like ddd and nemiver, looking for a sensible UI, and it was there all along!
- skeuomorf 11y agotui mode is great. I would recommend this tutorial by beej [0] as an intro to gdb for those unfamiliar with it, it also has a very handy cheatsheet at the bottom [1]. [0] http://beej.us/guide/bggdb/ http://beej.us/guide/bggdb/ [1] http://beej.us/guide/bggdb/#qref http://beej.us/guide/bggdb/#qref