CLion在单独的系统终端中运行程序 [英] CLion run program in separate system terminal

查看:2244
本文介绍了CLion在单独的系统终端中运行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 ncurses 程序,我想使用CLion进行交互式调试。问题是当我在CLion中运行程序来调试它时,运行程序的内置控制台不会正确显示 ncurses 程序的输出。 p>

我想让程序在我的系统终端上运行,以便在使用CLions调试器调试程序时可以正确看到输出。



有没有办法做这个?

解决方案

在其他调试器中, ncurses 应用程序,并使用 ncurses 将调试器附加到进程。 / p>

这样做可以避免 ncurses (改变终端I / O模式)和调试器的命令行之间的干扰。



功能是CLions调试器的最近发布的功能:



进一步阅读:




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:

这篇关于CLion在单独的系统终端中运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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