Skip to content

function breakpoints are not shown in text editor #13547

Open
@bryghtlabs-richard

Description

@bryghtlabs-richard

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:

  1. With CL.EXE build and debug
  2. Make a simple C program with main() and fib() functions
  3. Set a function-breakpoint on fib()
  4. Debug program - program will stop on fib() with no indication why. Suggest indicating function-breakpoints on first line with instructions of impacted functions.

Ex:

Image

Because:

Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdebuggerhelp wantedCan be fixed in the public (open source) repo.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions