Breakpoint errors

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The following describes the process when a breakpoint attempts to bind to code but fails.

Troubleshoot a breakpoint error

  1. The debug engine (DE) sends an IDebugBreakpointErrorEvent2 to the session debug manager (SDM).

  2. The SDM calls IDebugBreakpointErrorEvent2::GetErrorBreakpoint (IDebugErrorBreakpoint2** ppErrorBP) to get the error breakpoint.

  3. The SDM calls IDebugErrorBreakpoint2::GetPendingBreakpoint to get the pending breakpoint from which the error breakpoint originated.

  4. The SDM calls IDebugErrorBreakpoint2::GetBreakpointResolution to get the reason why the error breakpoint failed to bind.

See also