breakpoints not hit
Bug type: Debugger
Describe the bug
- OS and Version: win7 SP1
- VS Code Version: **VSCodeUserSetup-x64-1.57.1
- C/C++ Extension Version: v1.4.1
- Other extensions you installed (and if the issue persists after disabling them): Code Runner 0.11.4
- MinGW: x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
When i Start debugging the following simple code:

it hits no breakpoint, and nothing prints out but builds successfully:

Moreover, it is very surprising to note that no logs in the DEBUG CONSOLE:

My configurations
- tasks.json:
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "D:\\MinGW\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
- launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gdb (Launch)",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "D:\\MinGW\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe build active file",
"logging": {
"trace": true,
"traceResponse": true,
"engineLogging": true
}
}
]
}
Other Info
When i debugging in win10 with the same configurations, all goes well.
The debug adapter has a minimum requirement of using .NET Framework v4.6.2.
What version of .NET Framework do you have installed on that Windows 7 machine? You can find out the version installed with: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#detect-net-framework-45-and-later-versions
The debug adapter has a minimum requirement of using .NET Framework v4.6.2.
What version of .NET Framework do you have installed on that Windows 7 machine? You can find out the version installed with: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#detect-net-framework-45-and-later-versions
@WardenGnaw Thanks so much. After installed the latest version of .NET Framework 4.8, the Start Debugging function is normal. (By the way, a new negligible issue is raised: Run Without Debugging also hits breakpoint.)