VS中 unable to start debugging

VS中显示unable to start debugging The value of miDebuggerpath is invalid

怎么出来这个信息的啊?

将项目设为启动项目,如果是动态库,关联一下exe

img

你这是vscode的提示吧?把gcc的bin文件夹添加到PATH中。程序路径和文件名中不要带中文字符。

检查VS Code中launch.json文件里miDebuggerPath设置是否正确

看一下调试的启动程序是否设置正确,确保能够运行编译的exe文件再启动调试。