|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.nxt.debug.DebugInterface
public class DebugInterface
This class provides the primary interface to the debug capabilities of leJOS. it provides an event based mechanism that allows Java applications to wait for debug events from the VM.
Field Summary | |
---|---|
static int |
DBG_EVENT_DISABLE
|
static int |
DBG_EVENT_ENABLE
|
static int |
DBG_EVENT_IGNORE
|
static int |
DBG_EXCEPTION
|
static int |
DBG_NONE
|
static int |
DBG_PROGRAM_EXIT
|
static int |
DBG_USER_INTERRUPT
|
Throwable |
exception
|
int |
method
|
int |
pc
|
Thread[] |
systemThreads
|
Thread |
thread
|
int |
typ
|
Method Summary | |
---|---|
void |
clearEvent()
Clear the reported event. |
static DebugInterface |
get()
|
void |
recordSystemThreads()
Take a snapshot of the current set of threads. |
void |
resumeProgram()
Allow the monitored program to continue running. |
void |
resumeSystemThreads()
Resume essential system threads. |
int |
setEventOptions(int event,
int option)
Allow events to be enabled/disabled/ignored. |
int |
startProgram(int progId)
Start a program to be monitored, running in a new thread. |
int |
waitEvent(int millis)
Wait for a debug event from the kernel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DBG_NONE
public static final int DBG_EXCEPTION
public static final int DBG_USER_INTERRUPT
public static final int DBG_PROGRAM_EXIT
public static final int DBG_EVENT_DISABLE
public static final int DBG_EVENT_ENABLE
public static final int DBG_EVENT_IGNORE
public int typ
public Throwable exception
public Thread thread
public int method
public int pc
public Thread[] systemThreads
Method Detail |
---|
public static DebugInterface get()
public void clearEvent()
public final int waitEvent(int millis)
millis
- wait for at most millis milliseconds. 0 = forever.
public void recordSystemThreads()
public final int startProgram(int progId)
progId
- The program number
public void resumeProgram()
public void resumeSystemThreads()
public int setEventOptions(int event, int option)
event
- option
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |