C# Class Mono.Debugging.Soft.SoftDebuggerSession

Inheritance: Mono.Debugging.Client.DebuggerSession
Mostrar archivo Open project: slluis/monodevelop Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ConnectOutput() protected method

protected ConnectOutput ( System reader, bool error ) : void
reader System
error bool
return void

Disassemble() public method

public Disassemble ( Mono frame, int firstLine, int count ) : Mono.Debugging.Client.AssemblyLine[]
frame Mono
firstLine int
count int
return Mono.Debugging.Client.AssemblyLine[]

Dispose() public method

public Dispose ( ) : void
return void

EndSession() protected method

protected EndSession ( ) : void
return void

EnsureExited() protected method

This is a fallback in case the debugger agent doesn't respond to an exit call
protected EnsureExited ( ) : void
return void

GetAllTypes() public method

public GetAllTypes ( ) : IEnumerable
return IEnumerable

GetConnectingMessage() protected method

protected GetConnectingMessage ( Mono.Debugging.Client.DebuggerStartInfo dsi ) : string
dsi Mono.Debugging.Client.DebuggerStartInfo
return string

GetExceptionObject() public method

public GetExceptionObject ( ThreadMirror thread ) : ObjectMirror
thread Mono.Debugger.Soft.ThreadMirror
return Mono.Debugger.Soft.ObjectMirror

GetType() public method

public GetType ( string fullName ) : TypeMirror
fullName string
return Mono.Debugger.Soft.TypeMirror

HandleException() protected method

protected HandleException ( Exception ex ) : bool
ex System.Exception
return bool

IsExternalCode() public method

public IsExternalCode ( Mono frame ) : bool
frame Mono
return bool

IsExternalCode() public method

public IsExternalCode ( TypeMirror type ) : bool
type Mono.Debugger.Soft.TypeMirror
return bool

OnAttachToProcess() protected method

protected OnAttachToProcess ( long processId ) : void
processId long
return void

OnCancelAsyncEvaluations() protected method

protected OnCancelAsyncEvaluations ( ) : void
return void

OnConnectionError() protected method

Called if an error happens while making the connection. Default terminates the session.
protected OnConnectionError ( Exception ex ) : void
ex System.Exception
return void

OnContinue() protected method

protected OnContinue ( ) : void
return void

OnDetach() protected method

protected OnDetach ( ) : void
return void

OnDisassembleFile() protected method

protected OnDisassembleFile ( string file ) : Mono.Debugging.Client.AssemblyLine[]
file string
return Mono.Debugging.Client.AssemblyLine[]

OnEnableBreakEvent() protected method

protected OnEnableBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo, bool enable ) : void
binfo Mono.Debugging.Client.BreakEventInfo
enable bool
return void

OnExit() protected method

protected OnExit ( ) : void
return void

OnFinish() protected method

protected OnFinish ( ) : void
return void

OnGetProcesses() protected method

protected OnGetProcesses ( ) : Mono.Debugging.Client.ProcessInfo[]
return Mono.Debugging.Client.ProcessInfo[]

OnGetThreadBacktrace() protected method

protected OnGetThreadBacktrace ( long processId, long threadId ) : Mono.Debugging.Client.Backtrace
processId long
threadId long
return Mono.Debugging.Client.Backtrace

OnGetThreads() protected method

protected OnGetThreads ( long processId ) : ThreadInfo[]
processId long
return ThreadInfo[]

OnInsertBreakEvent() protected method

protected OnInsertBreakEvent ( Mono.Debugging.Client.BreakEvent ev ) : Mono.Debugging.Client.BreakEventInfo
ev Mono.Debugging.Client.BreakEvent
return Mono.Debugging.Client.BreakEventInfo

OnNextInstruction() protected method

protected OnNextInstruction ( ) : void
return void

OnNextLine() protected method

protected OnNextLine ( ) : void
return void

OnRemoveBreakEvent() protected method

protected OnRemoveBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
binfo Mono.Debugging.Client.BreakEventInfo
return void

OnResumed() protected method

protected OnResumed ( ) : void
return void

OnRun() protected method

protected OnRun ( Mono.Debugging.Client.DebuggerStartInfo startInfo ) : void
startInfo Mono.Debugging.Client.DebuggerStartInfo
return void

OnSetActiveThread() protected method

protected OnSetActiveThread ( long processId, long threadId ) : void
processId long
threadId long
return void

OnStepInstruction() protected method

protected OnStepInstruction ( ) : void
return void

OnStepLine() protected method

protected OnStepLine ( ) : void
return void

OnStop() protected method

protected OnStop ( ) : void
return void

OnUpdateBreakEvent() protected method

protected OnUpdateBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
binfo Mono.Debugging.Client.BreakEventInfo
return void

RegisterUserAssemblies() protected method

protected RegisterUserAssemblies ( List userAssemblyNames ) : void
userAssemblyNames List
return void

ShouldRetryConnection() protected method

protected ShouldRetryConnection ( Exception ex, int attemptNumber ) : bool
ex System.Exception
attemptNumber int
return bool

SoftDebuggerSession() public method

public SoftDebuggerSession ( ) : System
return System

StartConnecting() protected method

protected StartConnecting ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
return void

StartConnecting() protected method

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
return void

StartListening() protected method

Starts the debugger listening for a connection over TCP/IP
protected StartListening ( Mono.Debugging.Soft.SoftDebuggerStartInfo dsi ) : void
dsi Mono.Debugging.Soft.SoftDebuggerStartInfo
return void

StartListening() protected method

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
return void

StartListening() protected method

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
return void