ICorDebugCode::CreateBreakpoint 方法
在指定的位移上,於此程式碼區段中建立中斷點。
HRESULT CreateBreakpoint (
[in] ULONG32 offset,
[out] ICorDebugFunctionBreakpoint **ppBreakpoint
);
參數
offset
[in] 在其上要建立中斷點的位移。ppBreakpoint
[out] ICorDebugFunctionBreakpoint 物件之位址的指標,這個物件代表中斷點。
備註
中斷點成為使用中狀態之前,必須先將它加入至處理序物件。
如果此程式碼為 Microsoft Intermediate Language (MSIL) 程式碼,而且有 Just-In-Time (JIT) 編譯、原生版本的程式碼,則中斷點也會套用在 JIT 編譯的程式碼 (即使稍後 JIT 編譯此程式碼,也適用相同狀況)。
需求
**平台:**請參閱 .NET Framework 系統需求。
**標頭:**CorDebug.idl、CorDebug.h
**程式庫:**CorGuids.lib
**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0