Qt Creator - 使用来自文件的输入调试应用程序
Qt Creator - debug application with input from file
我通常用
测试我的应用
./myapp < test/test01.in
所以在我的 运行 配置中,我将命令行参数设置为:
< test/test01.in
现在,当我启动调试会话时,遇到以下错误:
Debugging complex shell commands in a terminal is currently not supported.
我可以在 QtCreator 中调试我的应用程序,而不必通过 hand/copying 直接在终端中键入所有输入吗?
您需要正确填写项目->运行 字段("Executable"、"Command line arguments"、"Working directory")并留下 "Run in terminal"复选框处于未选中状态。
之后就可以开始调试了(F5)。
我通常用
测试我的应用./myapp < test/test01.in
所以在我的 运行 配置中,我将命令行参数设置为:
< test/test01.in
现在,当我启动调试会话时,遇到以下错误:
Debugging complex shell commands in a terminal is currently not supported.
我可以在 QtCreator 中调试我的应用程序,而不必通过 hand/copying 直接在终端中键入所有输入吗?
您需要正确填写项目->运行 字段("Executable"、"Command line arguments"、"Working directory")并留下 "Run in terminal"复选框处于未选中状态。
之后就可以开始调试了(F5)。