VSCode is displaying the error message
ERROR: During startup program exited with code 0xc0000135.
When I try to debug the code. Initially MinGW installation was showing the error missing dll files, then I reinstalled MinGW, now it is no more showing any errors and the catalogue is updating properly. Restarted the system, re-added the bin folder to the Environment Path Variable.
The file is being compiled and executing properly, the Error message is displayed only while debugging
IDE: VSCode
Compiler: MinGW
OS: Windows
Tried Fixes:
- Reinstalled MinGW
- Added the bin folder to the environment path variables
- Restarted VSCode
launch.json for VSCode:
{
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "D:\\C++\\minGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "C/C++: g++.exe build active file"
}
]
}
Code:
#include <iostream>
int main(){
std::cout << "Hello World" << std::endl;
}