Skip to content

Breakpoints not hit when added during runtime with MinGW in VSCode #14745

Description

@liubailin2017

Environment

  • OS and version: windows 11
  • VS Code:
  • C/C++ extension:
  • OS and version of remote machine (if applicable):
  • GDB / LLDB version: GNU gdb (GDB) 11.2

Bug Summary and Steps to Reproduce

Bug Summary:

When I run a GUI program (for example, a Qt application) in VSCode, if I add breakpoints during execution, they cannot be hit. However, in Qt Creator, the breakpoints can be hit under the same conditions. Both in Qt Creator and VSCode I am using the same MinGW 11 toolchain. I have tested across multiple environments and this problem consistently occurs.

Debugger Configurations

/

Debugger Logs

/

Other Extensions

/

Additional Information

The condition is that the breakpoints are added while the program is running, not when the program is paused.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions