class DEBUGGER extends AnyRef
A simple server that responds to browser requests with
a description of the state of active CSO
threads,
open channel, and monitored values/expressions.
To ensure that the server is loaded and started it is necessary for code of the following spirit to be executed on program startup.
val debugger = new io.threadcso.DEBUGGER(<some port number>)
See also the definition of io.threadcso.debugger for an account of how this is usually
done automatically (with a randomly-allocated free port number).
This is essentially by mentioning the lazy variable
io.threadcso.debugger. For example, the following code prints an
announcement that the debugger is running
import io.threadcso._ ... if (debugging) println(debugger)
in the form:
Debugger(http://localhost:64601)
-- which a browser can easily be pointed at.
- Alphabetic
- By Inheritance
- DEBUGGER
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DEBUGGER(debugPort: Int = 0)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
monitor(): Unit
Clear all monitored expressions.
-
def
monitor(name: String): Unit
Remove the association of
name
to any string expression it was associated with. -
def
monitor(name: String, state: ⇒ String): Unit
Associate
name
with a string expression to be evaluated and reported when the state of the program is reported to a browser by the debugger. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
var
port: Int
The port number on which the debugger thread will listen for browser connections.
The port number on which the debugger thread will listen for browser connections. Unless this port number is
0
the debugger is started. If not set by the jdk/scala propertyio.threadcso.debugger.port=...
then this defaults to thedebugPort
class parameter (which itself defaults to0
). -
def
showCSOState(out: PrintWriter): Unit
Write a textual representation of the current state of the CSO program (its threads and channel and monitored variables) to
out
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- DEBUGGER → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )