C# Класс Microsoft.Samples.Debugging.CorDebug.CorDebugger

Наследование: System.MarshalByRefObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CanLaunchOrAttach() публичный Метод

public CanLaunchOrAttach ( int processId, bool win32DebuggingEnabled ) : void
processId int
win32DebuggingEnabled bool
Результат void

CorDebugger() публичный Метод

Creates a debugger wrapper from Guid.
public CorDebugger ( System.Guid debuggerGuid ) : System
debuggerGuid System.Guid
Результат System

CorDebugger() публичный Метод

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
Результат System

CreateProcess() публичный Метод

public CreateProcess ( String applicationName, String commandLine ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
Результат Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() публичный Метод

public CreateProcess ( String applicationName, String commandLine, String currentDirectory ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
applicationName String
commandLine String
currentDirectory String
Результат Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() публичный Метод

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
Результат Microsoft.Samples.Debugging.CorDebug.CorProcess

CreateProcess() публичный Метод

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
Результат Microsoft.Samples.Debugging.CorDebug.CorProcess

DebugActiveProcess() публичный Метод

public DebugActiveProcess ( int processId, bool win32Attach ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
processId int
win32Attach bool
Результат Microsoft.Samples.Debugging.CorDebug.CorProcess

GetDebuggerVersionFromFile() публичный статический Метод

public static GetDebuggerVersionFromFile ( string pathToExe ) : string
pathToExe string
Результат string

GetDebuggerVersionFromPid() публичный статический Метод

public static GetDebuggerVersionFromPid ( int pid ) : string
pid int
Результат string

GetDefaultDebuggerVersion() публичный статический Метод

public static GetDefaultDebuggerVersion ( ) : string
Результат string

GetProcess() публичный Метод

public GetProcess ( int processId ) : Microsoft.Samples.Debugging.CorDebug.CorProcess
processId int
Результат Microsoft.Samples.Debugging.CorDebug.CorProcess

Terminate() публичный Метод

public Terminate ( ) : void
Результат void