Open
Description
Environment
- OS and version: Windows 11
- VS Code: 1.99.3
- C/C++ extension: 1.24.5
- OS and version of remote machine (if applicable): N/A
- GDB / LLDB version: N/A
Bug Summary and Steps to Reproduce
Bug Summary:
When program breaks due to function-breakpoint, there is no indicator why. I checked the various consoles, but no feedback. I think I was confused because I set the breakpoint, but it doesn't show in the text editor. If it showed in the text editor, and the program broken with program-counter pointing to function-breakpoint, that would make sense.
Steps to reproduce:
- With CL.EXE build and debug
- Make a simple C program with main() and fib() functions
- Set a function-breakpoint on fib()
- Debug program - program will stop on fib() with no indication why. Suggest indicating function-breakpoints on first line with instructions of impacted functions.
Ex:
Because:
Debugger Configurations
Tasks.json:
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: cl.exe build active file",
"command": "cl.exe",
"args": [
"/Zi",
"/EHsc",
"/nologo",
"/Fe${fileDirname}\\${fileBasenameNoExtension}.exe",
"${file}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$msCompile"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Debugger Logs
I turned these on, but saw nothing additional when I did so.
Other Extensions
ESP-IDF plugin was installed, but disabled.
Additional Information
This also seems to impact the ESP-IDF VSCode plugin espressif/vscode-esp-idf-extension#1504 (comment) , so perhaps it's a DAP issue?