←back to thread

376 points turrini | 1 comments | | HN request time: 0.23s | source
Show context
cassepipe ◴[] No.42147118[source]
After trying many frontends for gdb I find that the TUI is the best. You just need to know about Ctrl + L to redraw if your program is printing stuff because the interface then become garbled.

I just put :

   layout src
   set confirm off
in my $XDG_CONFIG_HOME/gdb/gdbinit
replies(5): >>42147210 #>>42147594 #>>42150049 #>>42150533 #>>42153573 #
1. DSMan195276 ◴[] No.42147594[source]
I've used "gdb-dashboard" a lot, would recommend it. It's similar to the TUI (though I haven't used the TUI much), but you can pick and choose to display a large variety of information and the colors make the output much easier to read.

You can also make the dashboard display on another or across multiple terminals, letting you create a much nicer window layout. I've scripted this up with tmux before to have it automatically create the terminal layout and connect them to gdb, you can create really nice layouts that way (though it can be a lot of effort).