package debug
- Alphabetic
- Public
- All
Type Members
-
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.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. -
class
Logger
extends debug.REGISTRY.Debuggable
A component to support the recording of logging information from CSO programs.
A component to support the recording of logging information from CSO programs. See io.threadcso.debug.Logging for an example of how an elidable log can be specialized; and io.threadcso.alternation.Run for a typical use.
Value Members
-
object
Logger
Just
import io.threadcso.debug.Logger
if you wish to construct logs and make log entries. -
object
Logging
A component to support high-resolution logging within the CSO implementation.
A component to support high-resolution logging within the CSO implementation.
Methods are effective only when compiled without eliding FINEST.
Production versions of the threadCSO jar normally elide these features.
Debugging detail is controlled by the integer JVM property
io.threadcso.logging
. its bits are interpreted as boolean switches.The log keeps the most recent
logSize
logging messages, set by the integer JVM property:io.threadcso.logsize
.@author Bernard Sufrin, Oxford $Revision: 213 $ $Date: 2017-09-30 16:27:58 +0100 (Sat, 30 Sep 2017) $
- Annotations
- @elidable( FINEST )