Compartir a través de


IDebugPendingBreakpoint2::Bind

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

Binds this pending breakpoint to one or more code locations.

Syntax

HRESULT Bind( 
   void 
);
int Bind();

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_BP_DELETED if the breakpoint has been deleted.

Remarks

When this method is called, a debug engine (DE) should attempt to bind this pending breakpoint to all code locations that match.

After this method returns, the caller needs to wait for events indicating that the pending breakpoint has bound or is in error before assuming that calls to the EnumBoundBreakpoints or EnumErrorBreakpoints.methods will enumerate all bound or error breakpoints, respectively.

See also