gpt4 book ai didi

debugging - Qt Creator - 使用文件输入调试应用程序

转载 作者:行者123 更新时间:2023-12-03 06:55:47 27 4
gpt4 key购买 nike

我通常使用以下方式测试我的应用程序

./myapp < test/test01.in

因此,在我的运行配置中,我将命令行参数设置为:

< test/test01.in

现在,当我启动调试 session 时,我遇到了以下错误:

Debugging complex shell commands in a terminal is currently not supported.

我可以在 QtCreator 中调试我的应用程序,而无需手动键入所有输入/将其直接复制到终端中吗?

最佳答案

您需要正确填写项目->运行字段(“可执行文件”、“命令行参数”、“工作目录”)并保留“在终端中运行”复选框处于未检查状态。

之后就可以开始调试了(F5)。

关于debugging - Qt Creator - 使用文件输入调试应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36971386/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com