VSCODE GDB调试报错 Unable to start debugging. Unexpected GDB output from command “-exec-run“

这里写自定义目录标题

解决VSCODE gdb调试异常的一种情况

最近想尝试用vscode,开发opengl相关的,调试gdb时一直出问题,像下面这样。
VSCODE GDB调试报错 Unable to start debugging. Unexpected GDB output from command “-exec-run“
路径什么都没问题。
最终发现,必须要把依赖的dll,放到可执行文件同路径下,像下面这样:
VSCODE GDB调试报错 Unable to start debugging. Unexpected GDB output from command “-exec-run“

于是,终于!!!!能调试了!
VSCODE GDB调试报错 Unable to start debugging. Unexpected GDB output from command “-exec-run“
花了好长时间,希望能帮大家排排坑。