Could set data breakpoints in C++ project in VS2019, cannot in same project in VS2022

William Below 1 Reputation point
2022-02-23T02:21:55.423+00:00

In VS2022, New Data Breakpoint is always disabled. Debug is set to Native Only, Hot Reload is off. Are there any other settings that could prevent setting a data breakpoint?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,732 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Minxin Yu 11,751 Reputation points Microsoft Vendor
    2022-02-24T01:56:59.41+00:00

    Hi, @William Below
    Please also check the setting: Tools -> Options -> Debugging -> General->Enable address-level debugging
    177362-image.png

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.