[Window Title] Visual Studio Code [Content] Unable to start debugging. Program path 'D:\C语言代码\helloworld\hello.exe' is missing or invalid. GDB failed with message: D:\C语言代码\helloworld\hello.exe: No such file or directory. This may occur if the process's executable was changed after the process was started, such as when installing an update. Try re-launching the application or restarting the machine. [打开“launch.json”] [取消]
时间: 2024-04-10 11:29:06 浏览: 370
这个错误通常是由于程序路径无或可执行文件丢致的。请确程序的路径正确,并且在该路径存在名为 'hello.exe' 的可文件。
您可以尝试以下解决方法1. 检查程序路径:确保在.json 文件中的 "" 字段中指定了正确的程序。确保路径中不包含任何中文字符或特殊字符,并且路径是正确的。
2. 确保可执行文件存在:在指定的程序路径下,确保存在名为 'hello.exe' 的可执行文件。如果文件不存在,请重新编译您的程序并确保生成了可执行文件。
3. 重新启动应用程序:尝试重新启动 Visual Studio Code 或重启计算机,以确保没有其他进程占用了程序文件。
如果您仍然遇到问题,请提供更多详细信息,例如您的 launch.json 配置和程序文件的目录结构,以便我可以更好地帮助您解决问题。
阅读全文
相关推荐













