Search code examples
linuxgdb

Disable gdb highlight colors


I'm using gdb on Fedora 32 and gdb prints information with highlight color. However the color has less contrast for example dark blue text on black background. How can I disable the highlight color?


Solution

  • Use set style enabled off to disable all styling.

    Its possible to have more control over the output styling as described in the manual. For example, to just change the blue address you could use set style address foreground cyan.