4 ms·
Will try that one but so far I could not find better than gdb's tui mode. What's good about it if you're a command line vimmer is that it benefits from readline
by cassepipe 4y ago
Will try that one but so far I could not find better than gdb's tui mode. What's good about it if you're a command line vimmer is that it benefits from readline's vi editing mode if you say so in your .inputrc (although it's not as good as zsh's)
So jk go up and down your history and other editing goodies.
The only crucial piece of information to use it if you are debugging a program that prints stuff to the screen is the refresh command/Ctrl + L to refresh a garbled screen.
It also has source code highlighting if you have the right package installed I believe (gnu source highlighting or something)
- smeagull 4y agoGDB's TUI had multiple crashes, and gets corrupted too easily.
- pixelbeat__ 4y agoCtrl-L to redraw is often required, but that's standard for any tui
- dannymi 4y agoOnly if the tui doesn’t create pseudoterminals. In 2022, even Windows 10 has them (conpty) and unix has them for like forever (openpty).
- johannes1234321 4y agoGdb server helps. Here a quick tutorial from some other HN poster the other day: https://news.ycombinator.com/item?id=33032827 https://news.ycombinator.com/item?id=33032827
- Asooka 4y agoI sometimes run an empty xterm or tmux window and redirect the inferior to it using set inferior-tty