CodeArts IDE Online-代码调试:单文件一键调试

时间:2023-11-01 16:19:28

单文件一键调试

对于单文件或多文件工程,CodeArts IDE Online支持一键编译调试。操作步骤如下:

  1. 打开源文件,参考添加断点为文件添加断点。
  2. 选中需要调试的代码,鼠标右键选择“Build and Debug Active File”
  3. 选择执行平台。
    • 默认选择Internal Console。
    • 若程序需要从stdin读取,需要选择Integrated Terminal。

    也可以打开.theia/launch.json,把配置中的console项设置为internalConsole或integratedTerminal进行修改。

support.huaweicloud.com/usermanual-cloudide/debug_cpp.html