'launch: program File name does not exist. launch.json:

This error appears every time you compile. The program itself is somehow compiled but not as it should, because it should open a separate console and not write everything in the built-in vscode

"version": "0.2.0",
    "configurations":[],
      
       "name": "GCCDebug",
        "type": "cppdbg",
        "request": "launch",
        "program": "{fileDirname}\\${fileBasenameNoExtension}.exe",
        "args": [],
        "stopAtEntry": false,
        "cwd": "&{workspaceFolder}",
        "environment": [],
        "externalConsole": true,
        "MIMode": "dbg",
        "miDebugegrPath": "C:\\mingw32\\bin\\gdb.exe",
        "preLaunchTask": "GCCDebug"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source