【问题标题】:How to debug source code that expects an input (with eclipse)如何调试需要输入的源代码(使用 Eclipse)
【发布时间】:2014-04-28 12:22:58
【问题描述】:

我尝试调试需要在主函数中输入的较大源代码。否则它只会打印该行:

"usage: Programm <example_input.xml>"

我不知道如何在调试开始时插入此输入,以便我可以单步执行整个代码。 我正在使用eclipse进行调试。如果不能用 eclipse 来点缀他,我可以在命令行中切换到 gdb-debugger。

谢谢你!

【问题讨论】:

    标签: eclipse debugging input main


    【解决方案1】:

    您可以在以下位置添加参数:

    Run -> Run Configurations -> Arguments -> Program Arguments
    

    【讨论】:

      猜你喜欢
      • 2013-01-21
      • 2011-07-31
      • 2019-08-06
      • 1970-01-01
      • 1970-01-01
      • 2013-08-07
      • 1970-01-01
      • 2017-08-29
      • 2021-08-01
      相关资源
      最近更新 更多