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

Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: LogosBible/monodevelop Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CanLaunchOrAttach ( int processId, bool win32DebuggingEnabled ) : void
processId int
win32DebuggingEnabled bool
Résultat void

CorDebugger() public méthode

Creates a debugger wrapper from Guid.
public CorDebugger ( System.Guid debuggerGuid ) : System
debuggerGuid System.Guid
Résultat System

CorDebugger() public méthode

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
Résultat System

CreateProcess() public méthode

public CreateProcess ( String applicationName, String commandLine ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
Résultat Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() public méthode

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

CreateProcess() public méthode

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
Résultat Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() public méthode

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
Résultat Microsoft.Samples.Debugging.CorDebug.CorProcess

DebugActiveProcess() public méthode

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

GetDebuggerVersionFromFile() public static méthode

public static GetDebuggerVersionFromFile ( string pathToExe ) : string
pathToExe string
Résultat string

GetDebuggerVersionFromPid() public static méthode

public static GetDebuggerVersionFromPid ( int pid ) : string
pid int
Résultat string

GetDefaultDebuggerVersion() public static méthode

public static GetDefaultDebuggerVersion ( ) : string
Résultat string

GetProcess() public méthode

public GetProcess ( int processId ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
processId int
Résultat Microsoft.Samples.Debugging.CorDebug.CorProcess

Terminate() public méthode

public Terminate ( ) : void
Résultat void