C# Class Microsoft.Samples.Debugging.CorDebug.CorDebugger

Inheritance: System.MarshalByRefObject
显示文件 Open project: LogosBible/monodevelop Class Usage Examples

Public Methods

Method Description
CanLaunchOrAttach ( int processId, bool win32DebuggingEnabled ) : void
CorDebugger ( System.Guid debuggerGuid ) : System

Creates a debugger wrapper from Guid.

CorDebugger ( string debuggerVersion ) : System

Creates a debugger interface that is able debug requested verison of CLR

The version number is usually retrieved either by calling one of following mscoree functions: GetCorVerison, GetRequestedRuntimeVersion or GetVersionFromProcess.

CreateProcess ( String applicationName, String commandLine ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
CreateProcess ( String applicationName, String commandLine, String currentDirectory ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
CreateProcess ( String applicationName, String commandLine, String currentDirectory, string>.IDictionary environment ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
CreateProcess ( String applicationName, String commandLine, String currentDirectory, string>.IDictionary environment, int flags ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
DebugActiveProcess ( int processId, bool win32Attach ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
GetDebuggerVersionFromFile ( string pathToExe ) : string
GetDebuggerVersionFromPid ( int pid ) : string
GetDefaultDebuggerVersion ( ) : string
GetProcess ( int processId ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
Terminate ( ) : void

Private Methods

Method Description
CreateProcess ( String applicationName, String commandLine, Microsoft.Samples.Debugging.CorDebug.NativeApi.SECURITY_ATTRIBUTES processAttributes, Microsoft.Samples.Debugging.CorDebug.NativeApi.SECURITY_ATTRIBUTES threadAttributes, bool inheritHandles, int creationFlags, IntPtr environment, String currentDirectory, Microsoft.Samples.Debugging.CorDebug.NativeApi.STARTUPINFO startupInfo, Microsoft.Samples.Debugging.CorDebug.NativeApi.PROCESS_INFORMATION &processInformation, CorDebugCreateProcessFlags debuggingFlags ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
InitFromICorDebug ( ICorDebug rawDebuggingAPI ) : void
InitFromVersion ( string debuggerVersion ) : void
InternalFireEvent ( ManagedCallbackType callbackType, CorEventArgs e ) : void
SetManagedHandler ( ICorDebugManagedCallback managedCallback ) : void
SetUnmanagedHandler ( ICorDebugUnmanagedCallback nativeCallback ) : void

Method Details

CanLaunchOrAttach() public method

public CanLaunchOrAttach ( int processId, bool win32DebuggingEnabled ) : void
processId int
win32DebuggingEnabled bool
return void

CorDebugger() public method

Creates a debugger wrapper from Guid.
public CorDebugger ( System.Guid debuggerGuid ) : System
debuggerGuid System.Guid
return System

CorDebugger() public method

Creates a debugger interface that is able debug requested verison of CLR
The version number is usually retrieved either by calling one of following mscoree functions: GetCorVerison, GetRequestedRuntimeVersion or GetVersionFromProcess.
public CorDebugger ( string debuggerVersion ) : System
debuggerVersion string
return System

CreateProcess() public method

public CreateProcess ( String applicationName, String commandLine ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
return Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() public method

public CreateProcess ( String applicationName, String commandLine, String currentDirectory ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
currentDirectory String
return Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() public method

public CreateProcess ( String applicationName, String commandLine, String currentDirectory, string>.IDictionary environment ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
currentDirectory String
environment string>.IDictionary
return Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() public method

public CreateProcess ( String applicationName, String commandLine, String currentDirectory, string>.IDictionary environment, int flags ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
currentDirectory String
environment string>.IDictionary
flags int
return Microsoft.Samples.Debugging.CorDebug.CorProcess

DebugActiveProcess() public method

public DebugActiveProcess ( int processId, bool win32Attach ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
processId int
win32Attach bool
return Microsoft.Samples.Debugging.CorDebug.CorProcess

GetDebuggerVersionFromFile() public static method

public static GetDebuggerVersionFromFile ( string pathToExe ) : string
pathToExe string
return string

GetDebuggerVersionFromPid() public static method

public static GetDebuggerVersionFromPid ( int pid ) : string
pid int
return string

GetDefaultDebuggerVersion() public static method

public static GetDefaultDebuggerVersion ( ) : string
return string

GetProcess() public method

public GetProcess ( int processId ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
processId int
return Microsoft.Samples.Debugging.CorDebug.CorProcess

Terminate() public method

public Terminate ( ) : void
return void