Sdílet prostřednictvím


Creating a Pending Breakpoint

After the load complete event has been sent, Visual Studio checks to see if any breakpoints have been set in the source code. If so, the session debug manager (SDM) calls the debug engine's IDebugEngine2::CreatePendingBreakpoint method for each breakpoint set. The SDM describes the breakpoint in terms of language and location in the source file. If the breakpoint is of interest to the debug engine, it returns an IDebugPendingBreakpoint2 interface. The SDM uses this interface to establish breakpoint conditions and then calls the IDebugPendingBreakpoint2::Bind method to bind the breakpoint to application code.

Process

Creating a pending breakpoint consists of the following steps:

  1. Redirecting CreatePendingBreakpoint.

  2. Creating CPendingBreakpoint.

  3. Implementing CPendingBreakpoint.

  4. Implementing CreatePendingBreakpoint.

See Also

Tasks

Tutorial: Building a Debug Engine Using ATL COM