ICorDebugController 介面ICorDebugController Interface

表示可以控制程式碼執行內容的範圍 (ProcessAppDomain 其中一項)。Represents a scope, either a Process or an AppDomain, in which code execution context can be controlled.


方法Method 描述Description
ICorDebugController::CanCommitChanges 這個方法已過時。This method is obsolete.
ICorDebugController::CommitChanges 這個方法已過時。This method is obsolete.
Continue 方法Continue Method 在呼叫 ICorDebugController:: Stop之後,繼續執行 managed 執行緒。Resumes execution of managed threads after a call to ICorDebugController::Stop.
Detach 方法Detach Method 卸離進程或應用程式域中的偵錯工具。Detaches the debugger from the process or application domain.
EnumerateThreads 方法EnumerateThreads Method 取得進程中使用中 managed 執行緒的列舉值。Gets an enumerator for the active managed threads in the process.
HasQueuedCallbacks 方法HasQueuedCallbacks Method 取得值,這個值表示是否目前已針對指定的執行緒將任何受控回呼排入佇列。Gets a value that indicates whether any managed callbacks are currently queued for the specified thread.
IsRunning 方法IsRunning Method 取得值,這個值表示進程中的執行緒目前是否可自由執行。Gets a value that indicates whether the threads in the process are currently running freely.
SetAllThreadsDebugState 方法SetAllThreadsDebugState Method 設定進程中所有 managed 執行緒的偵錯工具狀態。Sets the debug state of all managed threads in the process.
Stop 方法Stop Method 在進程中執行 managed 程式碼的所有線程上執行合作式停止。Performs a cooperative stop on all threads that are running managed code in the process.
Terminate 方法Terminate Method 使用指定的結束代碼終止進程。Terminates the process with the specified exit code.


如果 ICorDebugController 控制進程,則範圍會包含進程的所有線程。If ICorDebugController is controlling a process, the scope includes all threads of the process. 如果 ICorDebugController 是控制應用程式域,則範圍僅包含該特定應用程式域的執行緒。If ICorDebugController is controlling an application domain, the scope includes only the threads of that particular application domain.


這個介面不支援跨電腦或跨處理序的遠端呼叫。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