问题描述
我有一个 ncurses
程序,我想使用CLion进行交互式调试。问题是当我在CLion中运行程序来调试它时,运行程序的内置控制台不会正确显示 ncurses
程序的输出。 p>
我想让程序在我的系统终端上运行,以便在使用CLions调试器调试程序时可以正确看到输出。
有没有办法做这个?
在其他调试器中, ncurses
应用程序,并使用 ncurses
将调试器附加到进程。 / p>
这样做可以避免 ncurses
(改变终端I / O模式)和调试器的命令行之间的干扰。
功能是CLions调试器的最近发布的功能:
进一步阅读:
- (2016年1月20日)
- (2015年8月31日)
- (2015年5月8日)
- (2014年9月16日)
I have an ncurses
program that I'd like to interactively debug using CLion. The problem is that when I run the program in CLion to debug it, the inbuilt console where the program is run doesn't display the output of the ncurses
program properly.
I'd like to have the program run in my systems terminal so I can see the output properly whilst debugging the program with CLions debugger.
Is there any way to do this?
In other debuggers, you would do this by running the ncurses
application in a terminal, and attaching the debugger to the process using ncurses
.
Doing that avoids interference between ncurses
(which changes the terminal I/O modes) and the debugger's command-line.
The attach feature is a recently released feature of the CLions debugger:
Further reading:
- More power to debug: Attach to local process (January 20, 2016)
- CLion 1.2 roadmap (August 31, 2015)
- Debugging in CLion (May 8, 2015 )
- CLion answers frequently asked questions (September 16, 2014)
- Debugging ncurses application with gdb
- Using GNU's GDB Debugger:Debugging Ncurses Programs
这篇关于CLion在单独的系统终端中运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!