ICorDebugProcess 介面ICorDebugProcess Interface

表示執行 Managed 程式碼的處理序。Represents a process that is executing managed code. 此介面是 ICorDebugController 的子類別。This interface is a subclass of ICorDebugController.


方法Method 描述Description
ClearCurrentException 方法ClearCurrentException Method 清除指定執行緒上目前的非受控例外狀況。Clears the current unmanaged exception on the given thread.
EnableLogMessages 方法EnableLogMessages Method 啟用和停用將記錄訊息傳送至偵錯工具。Enables and disables the sending of log messages to the debugger.
EnumerateAppDomains 方法EnumerateAppDomains Method 列舉進程中的所有應用程式域。Enumerates all of the application domains in the process.
EnumerateObjects 方法EnumerateObjects Method 未實作。Not implemented.
GetHandle 方法GetHandle Method 取得進程的控制碼。Gets a handle to the process.
GetHelperThreadID 方法GetHelperThreadID Method 取得作業系統 (作業系統) 偵錯工具內部 helper 執行緒的執行緒識別碼。Gets the operating system (OS) thread ID for the debugger's internal helper thread.
GetID 方法GetID Method 取得進程的作業系統 (OS) 識別碼。Gets the operating system (OS) ID of the process.
GetObject 方法GetObject Method 未實作。Not implemented.
GetThread 方法GetThread Method 取得具有指定之 OS 執行緒識別碼的 ICorDebugThread 實例。Gets the ICorDebugThread instance that has the specified OS thread ID.
GetThreadContext 方法GetThreadContext Method 取得指定執行緒的內容。Gets the context for the given thread.
IsOSSuspended 方法IsOSSuspended Method 判斷線程是否因偵錯工具停止進程而暫止。Determines whether the thread has been suspended as a result of the debugger stopping the process.
IsTransitionStub 方法IsTransitionStub Method 判斷位址是否在會導致轉換成 managed 程式碼的存根內。Determines whether an address is inside a stub that will cause a transition to managed code.
ModifyLogSwitch 方法ModifyLogSwitch Method 設定指定之記錄參數的嚴重性層級。Sets the severity level of the specified log switch.
ReadMemory 方法ReadMemory Method 從進程讀取記憶體。Reads memory from the process.
SetThreadContext 方法SetThreadContext Method 設定指定執行緒的內容。Sets the context for the given thread.
ThreadForFiberCookie 方法ThreadForFiberCookie Method 已取代。Deprecated.
WriteMemory 方法WriteMemory Method 將資料寫入進程中的記憶體區域。Writes data to an area of memory in the process.



這個介面不支援跨電腦或跨處理序的遠端呼叫。This interface does not support being called remotely, either cross-machine or cross-process.


平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 1.0 起可用Available since 1.0.NET Framework Versions: 自 1.0 起可用Available since 1.0

另請參閱See also