C# Класс Mono.Debugging.Soft.SoftDebuggerSession

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

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

Метод Описание
Disassemble ( Mono frame, int firstLine, int count ) : Mono.Debugging.Client.AssemblyLine[]
Dispose ( ) : void
GetAllTypes ( ) : IEnumerable
GetExceptionObject ( ThreadMirror thread ) : ObjectMirror
GetType ( string fullName ) : TypeMirror
IsExternalCode ( Mono frame ) : bool
IsExternalCode ( TypeMirror type ) : bool
SoftDebuggerSession ( ) : System

Защищенные методы

Метод Описание
ConnectOutput ( System reader, bool error ) : void
EndSession ( ) : void
EnsureExited ( ) : void

This is a fallback in case the debugger agent doesn't respond to an exit call

GetConnectingMessage ( Mono.Debugging.Client.DebuggerStartInfo dsi ) : string
HandleException ( Exception ex ) : bool
OnAttachToProcess ( long processId ) : void
OnCancelAsyncEvaluations ( ) : void
OnConnectionError ( Exception ex ) : void

Called if an error happens while making the connection. Default terminates the session.

OnContinue ( ) : void
OnDetach ( ) : void
OnDisassembleFile ( string file ) : Mono.Debugging.Client.AssemblyLine[]
OnEnableBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo, bool enable ) : void
OnExit ( ) : void
OnFinish ( ) : void
OnGetProcesses ( ) : Mono.Debugging.Client.ProcessInfo[]
OnGetThreadBacktrace ( long processId, long threadId ) : Mono.Debugging.Client.Backtrace
OnGetThreads ( long processId ) : ThreadInfo[]
OnInsertBreakEvent ( Mono.Debugging.Client.BreakEvent ev ) : Mono.Debugging.Client.BreakEventInfo
OnNextInstruction ( ) : void
OnNextLine ( ) : void
OnRemoveBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
OnResumed ( ) : void
OnRun ( Mono.Debugging.Client.DebuggerStartInfo startInfo ) : void
OnSetActiveThread ( long processId, long threadId ) : void
OnStepInstruction ( ) : void
OnStepLine ( ) : void
OnStop ( ) : void
OnUpdateBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
RegisterUserAssemblies ( List userAssemblyNames ) : void
ShouldRetryConnection ( Exception ex, int attemptNumber ) : bool
StartConnecting ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void
StartConnecting ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, int maxAttempts, int timeBetweenAttempts ) : void

Starts the debugger connecting to a remote IP

StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void

Starts the debugger listening for a connection over TCP/IP

StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, int &assignedDebugPort ) : void

Starts the debugger listening for a connection over TCP/IP

StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, int &assignedDebugPort, int &assignedConsolePort ) : void

Starts the debugger listening for a connection over TCP/IP

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

Метод Описание
ConnectionStarted ( VirtualMachine vm ) : void

If subclasses do an async connect in OnRun, they should pass the resulting VM to this method. If the vm is null, the session will be closed.

ConnectionStarting ( IAsyncResult connectionHandle, Mono.Debugging.Client.DebuggerStartInfo dsi, bool listening, int attemptNumber ) : void
DequeueEventsForFirstThread ( ) : void
Disassemble ( Mono.Debugger.Soft.ILInstruction ins ) : string
EndLaunch ( ) : void
EnsureRecentThreadIsValid ( Mono.Debugging.Client.ProcessInfo process ) : void
EvaluateExpression ( ThreadMirror thread, string exp ) : string
EvaluateTrace ( ThreadMirror thread, string exp ) : string
EventHandler ( ) : void
FindLocation ( string file, int line, bool &inisideLoadedRange ) : Mono.Debugger.Soft.Location
GetId ( ThreadMirror thread ) : long
GetLocFromType ( TypeMirror type, string file, int line, bool &insideTypeRange ) : Mono.Debugger.Soft.Location
GetThread ( Mono.Debugging.Client.ProcessInfo process, ThreadMirror thread ) : ThreadInfo
GetThread ( long processId, long threadId ) : ThreadMirror
GetThreadBacktrace ( ThreadMirror thread ) : Mono.Debugging.Client.Backtrace
HandleBreakEventSet ( Mono.Debugger.Soft.Event es, bool dequeuing ) : void
HandleBreakpoint ( ThreadMirror thread, Mono.Debugger.Soft.EventRequest er ) : bool
HandleConnectionCallbackErrors ( AsyncCallback callback ) : AsyncCallback

Catches errors in async callbacks and hands off to OnConnectionError

HandleEvent ( Mono.Debugger.Soft.Event e ) : void
HandleEventSet ( Mono.Debugger.Soft.EventSet es ) : void
HasUserFrame ( long tid, ThreadInfo infos ) : bool
HideConnectionDialog ( ) : void
InitForRemoteSession ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, IPEndPoint &dbgEP, IPEndPoint &conEP ) : void
InsertBreakpoint ( Mono.Debugging.Client.Breakpoint bp, BreakInfo bi ) : void
InsertCatchpoint ( Mono.Debugging.Client.Catchpoint cp, BreakInfo bi, TypeMirror excType ) : void
IsRunningOnMac ( ) : bool
PathToFileName ( string path ) : string
PathsAreEqual ( string p1, string p2 ) : bool
QueueBreakEventSet ( Mono.Debugger.Soft.Event eventSet ) : void
QueueEnsureExited ( ) : void
ReadOutput ( System reader, bool isError ) : void
RemoveQueuedBreakEvents ( Mono.Debugger.Soft.EventRequest request ) : void
ResolveBreakpoints ( TypeMirror t ) : void
ResolvePendingBreakpoint ( BreakInfo bi, Mono.Debugger.Soft.Location l ) : void
ResolvePendingCatchpoint ( BreakInfo bi, TypeMirror type ) : void
StartLaunching ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void
Step ( StepDepth depth, StepSize size ) : void
ThreadIsAlive ( ThreadMirror thread ) : bool
UpdateAssemblyFilters ( Mono.Debugger.Soft.AssemblyMirror asm ) : bool
WriteDebuggerOutput ( bool isError, string msg ) : void
uname ( IntPtr buf ) : int

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

ConnectOutput() защищенный Метод

protected ConnectOutput ( System reader, bool error ) : void
reader System
error bool
Результат void

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

public Disassemble ( Mono frame, int firstLine, int count ) : Mono.Debugging.Client.AssemblyLine[]
frame Mono
firstLine int
count int
Результат Mono.Debugging.Client.AssemblyLine[]

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

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

EndSession() защищенный Метод

protected EndSession ( ) : void
Результат void

EnsureExited() защищенный Метод

This is a fallback in case the debugger agent doesn't respond to an exit call
protected EnsureExited ( ) : void
Результат void

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

public GetAllTypes ( ) : IEnumerable
Результат IEnumerable

GetConnectingMessage() защищенный Метод

protected GetConnectingMessage ( Mono.Debugging.Client.DebuggerStartInfo dsi ) : string
dsi Mono.Debugging.Client.DebuggerStartInfo
Результат string

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

public GetExceptionObject ( ThreadMirror thread ) : ObjectMirror
thread Mono.Debugger.Soft.ThreadMirror
Результат Mono.Debugger.Soft.ObjectMirror

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

public GetType ( string fullName ) : TypeMirror
fullName string
Результат Mono.Debugger.Soft.TypeMirror

HandleException() защищенный Метод

protected HandleException ( Exception ex ) : bool
ex System.Exception
Результат bool

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

public IsExternalCode ( Mono frame ) : bool
frame Mono
Результат bool

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

public IsExternalCode ( TypeMirror type ) : bool
type Mono.Debugger.Soft.TypeMirror
Результат bool

OnAttachToProcess() защищенный Метод

protected OnAttachToProcess ( long processId ) : void
processId long
Результат void

OnCancelAsyncEvaluations() защищенный Метод

protected OnCancelAsyncEvaluations ( ) : void
Результат void

OnConnectionError() защищенный Метод

Called if an error happens while making the connection. Default terminates the session.
protected OnConnectionError ( Exception ex ) : void
ex System.Exception
Результат void

OnContinue() защищенный Метод

protected OnContinue ( ) : void
Результат void

OnDetach() защищенный Метод

protected OnDetach ( ) : void
Результат void

OnDisassembleFile() защищенный Метод

protected OnDisassembleFile ( string file ) : Mono.Debugging.Client.AssemblyLine[]
file string
Результат Mono.Debugging.Client.AssemblyLine[]

OnEnableBreakEvent() защищенный Метод

protected OnEnableBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo, bool enable ) : void
binfo Mono.Debugging.Client.BreakEventInfo
enable bool
Результат void

OnExit() защищенный Метод

protected OnExit ( ) : void
Результат void

OnFinish() защищенный Метод

protected OnFinish ( ) : void
Результат void

OnGetProcesses() защищенный Метод

protected OnGetProcesses ( ) : Mono.Debugging.Client.ProcessInfo[]
Результат Mono.Debugging.Client.ProcessInfo[]

OnGetThreadBacktrace() защищенный Метод

protected OnGetThreadBacktrace ( long processId, long threadId ) : Mono.Debugging.Client.Backtrace
processId long
threadId long
Результат Mono.Debugging.Client.Backtrace

OnGetThreads() защищенный Метод

protected OnGetThreads ( long processId ) : ThreadInfo[]
processId long
Результат ThreadInfo[]

OnInsertBreakEvent() защищенный Метод

protected OnInsertBreakEvent ( Mono.Debugging.Client.BreakEvent ev ) : Mono.Debugging.Client.BreakEventInfo
ev Mono.Debugging.Client.BreakEvent
Результат Mono.Debugging.Client.BreakEventInfo

OnNextInstruction() защищенный Метод

protected OnNextInstruction ( ) : void
Результат void

OnNextLine() защищенный Метод

protected OnNextLine ( ) : void
Результат void

OnRemoveBreakEvent() защищенный Метод

protected OnRemoveBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
binfo Mono.Debugging.Client.BreakEventInfo
Результат void

OnResumed() защищенный Метод

protected OnResumed ( ) : void
Результат void

OnRun() защищенный Метод

protected OnRun ( Mono.Debugging.Client.DebuggerStartInfo startInfo ) : void
startInfo Mono.Debugging.Client.DebuggerStartInfo
Результат void

OnSetActiveThread() защищенный Метод

protected OnSetActiveThread ( long processId, long threadId ) : void
processId long
threadId long
Результат void

OnStepInstruction() защищенный Метод

protected OnStepInstruction ( ) : void
Результат void

OnStepLine() защищенный Метод

protected OnStepLine ( ) : void
Результат void

OnStop() защищенный Метод

protected OnStop ( ) : void
Результат void

OnUpdateBreakEvent() защищенный Метод

protected OnUpdateBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
binfo Mono.Debugging.Client.BreakEventInfo
Результат void

RegisterUserAssemblies() защищенный Метод

protected RegisterUserAssemblies ( List userAssemblyNames ) : void
userAssemblyNames List
Результат void

ShouldRetryConnection() защищенный Метод

protected ShouldRetryConnection ( Exception ex, int attemptNumber ) : bool
ex System.Exception
attemptNumber int
Результат bool

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

public SoftDebuggerSession ( ) : System
Результат System

StartConnecting() защищенный Метод

protected StartConnecting ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
Результат void

StartConnecting() защищенный Метод

Starts the debugger connecting to a remote IP
protected StartConnecting ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, int maxAttempts, int timeBetweenAttempts ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
maxAttempts int
timeBetweenAttempts int
Результат void

StartListening() защищенный Метод

Starts the debugger listening for a connection over TCP/IP
protected StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
Результат void

StartListening() защищенный Метод

Starts the debugger listening for a connection over TCP/IP
protected StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, int &assignedDebugPort ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
assignedDebugPort int
Результат void

StartListening() защищенный Метод

Starts the debugger listening for a connection over TCP/IP
protected StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi, int &assignedDebugPort, int &assignedConsolePort ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
assignedDebugPort int
assignedConsolePort int
Результат void