public class TiDebugger extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DBG_EVENT_BREAK1 |
static int |
DBG_EVENT_BREAK2 |
static int |
DBG_EVENT_BREAK3 |
static int |
DBG_EVENT_BREAK4 |
static int |
DBG_EVENT_EXCEPTION |
static int |
DBG_EVENT_EXIT |
static int |
DBG_EVENT_NONE |
static int |
DBG_OPTION_DISABLED |
static int |
DBG_OPTION_ENABLED |
static int |
DBG_OPTION_IGNORED |
Thread[] |
systemThreads |
Modifier and Type | Method and Description |
---|---|
static TiDebugger |
getInstance()
Gets the TiDebugger instance
|
int |
operateProgram(int event,
int option,
Thread targetThread,
int targetMethodNo,
int targetMethodPc)
Allow events to be enabled/disabled/ignored.
|
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.
|
void |
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
|
public static final int DBG_EVENT_BREAK1
public static final int DBG_EVENT_BREAK2
public static final int DBG_EVENT_BREAK3
public static final int DBG_EVENT_BREAK4
public static final int DBG_EVENT_EXCEPTION
public static final int DBG_EVENT_EXIT
public static final int DBG_EVENT_NONE
public static final int DBG_OPTION_DISABLED
public static final int DBG_OPTION_ENABLED
public static final int DBG_OPTION_IGNORED
public Thread[] systemThreads
public static TiDebugger getInstance()
public int operateProgram(int event, int option, Thread targetThread, int targetMethodNo, int targetMethodPc)
event
- option
- targetThread
- targetMethodNo
- targetMethodPc
- public void recordSystemThreads()
public void resumeProgram()
public void resumeSystemThreads()
public final void startProgram(int progId)
progId
- The program numberpublic final int waitEvent(int millis)
millis
- wait for at most millis milliseconds. 0 = forever.