栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

VScode:ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

VScode:ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“

问题
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited with code 0xc0000139.

原因:windows 环境变量中的设置顺序问题,导致 libstdc++ -6.dll 文件冲突了
简单来说就是 mingw64bin 环境变量位置在后面, 导致 gdb 调试时选择的 libstdc++ -6.dll 不是 mingw64bin 中的,而是前面的环境变量中的 该文件

比如 git anaconda qt 等
git 展示

解决方法 方法一、将 mingw64bin 中的 libstdc++ -6.dll 拷贝到项目目录

对于每个项目都需要这么做,不够优雅

方法二、删除 windows 中冲突的环境变量

情况一:如果该软件不再使用了,这么做没问题
情况二: 对于 git 如果删除 git 命令无法使用,不可

方法三、调整位置(nice)

调整环境变量位置,将 mingw64bin 移动至冲突的 环境变量之前,我本地冲突的是 git 修改方式如下

总结

方式三比较优雅

参考链接

1、MSYS2 GDB 10.2] gdb: ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run”. Error creating process #7706
2、VSCode:ERROR: Unable to start debugging. Unexpected … “-exec-run“. During …code 0xc0000139

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/938067.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号