Continiously Breakpoints in ntdll.dll in Visual C++ Visual Studio 2022 Windows 11

25293849 0 Reputation points
2023-01-28T23:22:51.86+00:00

Hello, i have a problem in MSVC++ Visual Studio 2022 running on Windows 11

My software continiously breakpoints in ntdll.dll, then the software continues to run.

Sometimes breaks in one location, sometimes in other.

The thing is that i cannot make my dev like this in C++.

I have toched the options for Visual Studio debugger, but not luck.

I don't know what to do. Thanks in advance

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.
935 questions
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 40,021 Reputation points
    2023-01-29T10:13:39.7033333+00:00

    My software continiously breakpoints in ntdll.dll, then the software continues to run.

    This sounds like the Visual Studio debugger is breaking on first-chance exceptions.

    When a debugger is attached to a process it sees thrown exceptions before any exception handlers in the process being debugged. This is a first-chance exception and the debugger can be configured to break on it. If the debugger allows the process to continue executing then exception handlers in the process get a chance to handle the exception. If the process does not handle the exception then the debugger will see it again (second-chance exception) and the process will usually be terminated due to the unhandled exception.

    The Visual Studio debugger's Exception Settings window can be used to control how the debugger responds to exceptions. It can be reached by Debug->Windows->Exception Settings and looks like this -

    Exception Settings

    It would be helpful if you posted some screen shots of the debugger when it breaks on these exceptions so that we have a better understanding of what is actually happening.

    0 comments No comments

  2. 25293849 0 Reputation points
    2023-01-29T17:32:24.83+00:00

    29-01-2023_14-29-41

    Thanks, here is my screenshot