简体   繁体   English

Ncurses 和 gdb 屏幕在调试时重叠。 所以我想把两个屏幕分开

[英]Ncurses and gdb screens overlap at debug time. So I want to split the two screens with each other

I'm debugging a ncurses program using the gdb.我正在使用 gdb 调试 ncurses 程序。 when program run and reached the breakpoint and use cont command, ncurses program gui screen overlap a gdb screen, like this picture当程序运行并到达断点并使用 cont 命令时,ncurses 程序 gui 屏幕重叠一个 gdb 屏幕,如下图

I'm sorry I can't show you the code because I had a situation.很抱歉我无法向您展示代码,因为我遇到了情况。

Both "own" the whole display.两者都“拥有”整个显示器。 You can work around this by running gdb in a different terminal, and attaching to the process which uses ncurses.您可以通过在不同的终端中运行 gdb 并附加到使用 ncurses 的进程来解决此问题。

Further reading:进一步阅读:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM