在gdb中调试应用程序输出问题 [英] issue with debugged application output in gdb

查看:156
本文介绍了在gdb中调试应用程序输出问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在调试会话期间,我看到输出到控制台的每一行出现在一行中(在图片你看到 222222 突出显示为红色)。这就像是一个单一行的输出窗格。



最重要的是,每个 \\\
doesn不清理那条线,所以所有的字符串都会覆盖对方,这使我的输出变得非常混乱。



你能帮我解决一下这个问题,或者指点一些关键命令为了有一个干净的输出寻找?



我还突出了另一个区域(图片 1111111 )因为第一个字符串在那里输出,然后在源代码窗口的框架上输出所有其他字符。

解决方案

用Ctrl + L键绑定。或者您可以暂时切换到正常模式,逐步观看节目输出并切换回tui模式(Ctrl + X A)。查看所有键绑定此处


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.

解决方案

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.

这篇关于在gdb中调试应用程序输出问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆