开发者

issue with debugged application output in gdb

开发者 https://www.devze.com 2023-01-21 19:06 出处:网络
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开发者_如何学JAVA see 222222 highlighted

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开发者_如何学JAVA 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.

issue with debugged application output in gdb


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消