Release with debug application result in gdb

I am taking the first steps with GDB in TUI mode.

During a debugging session, I see that each line displayed on the console appears on one line (in the figure you see 222222 , highlighted in red). This is similar to the output area of ​​a single line.

In addition, each \n does not clear this line, so all lines rewrite each other, making my output very confusing.

Can you help me a little with this problem or give me some key search command to get a clean result?

I also selected another area (in Figure 1111111 ), because the first line is displayed there, and then all the rest in the frame of the source code window.

alt text

+6
debugging gdb
source share
1 answer

You can always update tui screeen every time your program displays something with the Ctrl + L key binding. Or you can temporarily switch to normal mode, display and see the program output and return to tui mode (Ctrl + XA). See all key bindings here .

+9
source share

All Articles