Back: DebugTools package Up: DebugTools package Forward: Debugger class-disabling debugging   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

4.1 Debugger

Defined in namespace Smalltalk
Superclass: Object
Category: System-Debugging
I provide debugging facilities for another inferior process. I have methods that allow the controlled process to proceed with varying granularity. In addition, I keep a cache mapping instruction pointer bytecodes to line numbers.

4.1.1 Debugger class: disabling debugging  (class)
4.1.2 Debugger class: instance creation  (class)
4.1.3 Debugger class: source code  (class)
4.1.4 Debugger: inferior process properties  (instance)
4.1.5 Debugger: stepping commands  (instance)


4.1.1 Debugger class: disabling debugging

debuggerClass
Answer `nil'.


4.1.2 Debugger class: instance creation

on: aProcess
Suspend aProcess and return a new Debugger that controls aProcess. aProcess must not be the currently running process.


4.1.3 Debugger class: source code

currentLineIn: aContext
Not commented.


4.1.4 Debugger: inferior process properties

currentLine
Return the line number in traced process.

isActive
Answer true if the inferior process is still running.

process
Answer the inferior process.

suspendedContext
Answer the suspended execution state of the inferior process.


4.1.5 Debugger: stepping commands

continue
Terminate the controlling process and continue execution of the traced process.

finish
Run to the next return.

finish: aContext
Run up until aContext returns.

next
Run to the end of the current line in the inferior process, skipping over message sends.

slowFinish
Run in single-step mode up to the next return.

slowFinish: aContext
Run in single-step mode until aContext returns.

step
Run to the end of the current line in the inferior process or to the next message send.

stepBytecode
Run a single bytecode in the inferior process.

stopInferior
Suspend the inferior process and raise a DebuggerReentered notification in the controlling process.

stopInferior: anObject
Suspend the inferior process and raise a DebuggerReentered notification in the controlling process with anObject as the exception's message.



Back: Debugger-inferior process properties Up: Debugger Forward: Iconv/I18N packages   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on February, 22 2012 using texi2html