←back to thread

376 points turrini | 1 comments | | HN request time: 0.001s | 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 #
CarpaDorada ◴[] No.42147210[source]
I like a colored prompt with

  set prompt \001\033[01;36m\002(gdb)\001\033[0m\002
and I save history with

  set history save on
  set history size 500000
  set history filename ~/.cache/gdb/history
replies(1): >>42147621 #
1. cassepipe ◴[] No.42147621[source]
I like to do that as well. Just want to keep it short :) Also I use vim mode for bash and since it's in .inputrc I also have a vim mode in gdb which I like a lot even though it's as good as zsh's