copy and replace this code in your launch.json file & change "miDebuggerPath": "C:\\mingw\\mingw32\\bin\\gdb.exe" according to your debugger path { "version"…