Search code examples
linuxdebugginggdbgnu-screen

How to see code window in gdb if you are using screen utility


I am using screen utility on my linux machine. I am trying to debug the code using gdb so to display code i am using [ctrl+x ctrl+a]. But nothing is displaying. When I try to do same without screen, I am able to see code window.


Solution

  • You can use (gdb) layout src. This is another way to enable TUI mode with source code window besides using key binding [ctrl+x ctrl+a]. See documentation.