我能';t从mingw使用gdb启动调试 我在VSCode使用C++来实现MIW,但是我在启动调试的步骤中遇到了障碍。VSCode控制台给了我以下错误:

我能';t从mingw使用gdb启动调试 我在VSCode使用C++来实现MIW,但是我在启动调试的步骤中遇到了障碍。VSCode控制台给了我以下错误:,c++,json,visual-studio-code,mingw,C++,Json,Visual Studio Code,Mingw,错误:无法启动调试。GDB意外退出。 程序“G:\ccompiler\projects\helloworld\helloworld.exe”已退出,代码为0(0x00000000) 错误:启动期间,程序退出,代码为0xc0000139 有人能帮我解决这个问题吗?我的代码和JSON文件与指南完全相同,只是我的编译器和调试器路径指向mingw文件夹 我的launch.json: { "version": "0.2.0", "configurations": [

错误:无法启动调试。GDB意外退出。 程序“G:\ccompiler\projects\helloworld\helloworld.exe”已退出,代码为0(0x00000000)

错误:启动期间,程序退出,代码为0xc0000139

有人能帮我解决这个问题吗?我的代码和JSON文件与指南完全相同,只是我的编译器和调试器路径指向mingw文件夹

我的
launch.json

{
    "version": "0.2.0",
     "configurations": [

         {
             "name": "(gdb) Launch",
             "type": "cppdbg",
             "request": "launch",
             "program": "${workspaceFolder}/helloworld.exe",
             "args": [],
             "stopAtEntry": true,
             "cwd": "${workspaceFolder}",
             "environment": [],
             "externalConsole": false,
             "MIMode": "gdb",
             "miDebuggerPath": "G:/ccompiler/mingw32/bin/gdb.exe",
             "setupCommands": [
                 {
                     "description": "Enable pretty-printing for gdb",
                     "text": "-enable-pretty-printing",
                     "ignoreFailures": true
                 }
             ]
         }
     ]
 }
我的源代码:

#包括
#包括
#包括
使用名称空间std;
int main()
{
矢量信息{“你好”,“C++”,“世界”,“来自”,“VS代码!”};
for(常量字符串和单词:msg)
{
你可能会发现有用的你可能会发现有用的