|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.debug.DebugInterface
public class DebugInterface
This class provides the primary interface to the debug capabilities of leJOS. It has two main functions: 1. To provide access to the internal VM and program structures: Threads Stacks Methods Classes 2. Provide an event based mechanism that allows Java applications to wait for debug events from the VM.
| Field Summary | |
|---|---|
int |
classBase
|
static int |
DBG_EVENT_DISABLE
|
static int |
DBG_EVENT_ENABLE
|
static int |
DBG_EVENT_IGNORE
|
static int |
DBG_EXCEPTION
|
static int |
DBG_USER_INTERRUPT
|
Exception |
exception
|
int |
fieldBase
|
int |
frame
|
int |
method
|
int |
methodBase
|
int |
pc
|
DebugThread |
thread
|
DebugThread[] |
threads
|
int |
typ
|
| Method Summary | |
|---|---|
void |
clear()
|
static int |
eventOptions(int event,
int option)
Allow events to be enabled/disabled/ignored. |
static void |
executeProgram(int progNo)
leJOS allows several "programs" to be linked into a single nxj file the system by default will start excution of program 0. |
static DebugInterface |
get()
|
protected static int |
peekWord(int addr)
Allow access to VM data structures |
int |
waitEvent(int millis)
Wait for a debug event from the kernel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Field Detail |
|---|
public static final int DBG_EXCEPTION
public static final int DBG_USER_INTERRUPT
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 Exception exception
public DebugThread thread
public int pc
public int frame
public int method
public int methodBase
public int classBase
public int fieldBase
public DebugThread[] threads
| Method Detail |
|---|
public static DebugInterface get()
public void clear()
public final int waitEvent(int millis)
throws InterruptedException
millis - wait for at most millis milliseconds. 0 = forever.
InterruptedExceptionprotected static final int peekWord(int addr)
addr - the address in the VM memory of a word
public static final int eventOptions(int event,
int option)
event - option -
public static void executeProgram(int progNo)
progNo - program number to call
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||