Abruzzo Forte e Gentile
Abruzzo Forte e Gentile

Reputation: 14859

issue with debugged application output in gdb

I am doing my first steps with GDB in TUI mode.

During the debug session I see that each line outputted to console occurs in a single line (in the picture you see 222222 highlighted in red). It is like having an output pane of one single line.

On top of that, each \n doesn't cleanup that line so all the strings do overwrite each other making my output very confusing.

Can you help me a bit with this issue or point me to some key command to look for in order to have a clean output?

I also highlighted another area (in the picture 1111111) because the first string is outputted there and then all other on the frame of the source code window.

alt text

Upvotes: 7

Views: 2633

Answers (1)

ks1322
ks1322

Reputation: 35708

You can always refresh tui screeen every time your program outputs something with Ctrl+L key binding. Or you can temporarily swith to normal mode, step and watch program output and switch back to tui mode (Ctrl+X A). See all key bindings here.

Upvotes: 12

Related Questions