共用方式為


Process.Break(Boolean) Method

Definition

Causes the given process to pause its execution so that its current state can be analyzed.

void Break(bool WaitForBreakMode = true);
[System.Runtime.InteropServices.DispId(3)]
public void Break (bool WaitForBreakMode = true);
[<System.Runtime.InteropServices.DispId(3)>]
abstract member Break : bool -> unit
Public Sub Break (Optional WaitForBreakMode As Boolean = true)

Parameters

WaitForBreakMode
Boolean

Set to true to return only when the debugger has entered break mode. Set to false to break and return immediately. For more information, see Breaking Execution.

Attributes

Examples

The following example demonstrates how to use the Break method.

public static void Break(DTE dte)  
{  
    EnvDTE.Processes processes = dte.Debugger.DebuggedProcesses;  
    processes.Item(1).Break(true);  
}  
Shared Sub Break(ByRef dte As EnvDTE.DTE)  
    Dim processes As EnvDTE.Processes = dte.Debugger.DebuggedProcesses  
    processes.Item(1).Break(True)  
End Sub  

Applies to