Method Summary |
|
public void | addListener(DebugListener listener) Adds a listener to this JPDADebugger. |
public synchronized void | addWatch(String field) Adds a watch on the given field or variable. |
public DebugModelCallback | callback() |
synchronized void | currThreadDied() Notifies all listeners that the current thread has died. |
synchronized void | currThreadSuspended() Notifies all listeners that the current thread has been suspended. |
void | eventHandlerError(Throwable t) Records that an error occurred in the EventHandlerThread. |
public synchronized Breakpoint | getBreakpoint(int line, String className) Gets the Breakpoint object at the specified line in the given class. |
ThreadReference | getCurrentRunningThread() Returns the running thread currently tracked by the debugger. |
public synchronized Vector<DebugStackData> | getCurrentStackFrameData() Returns a Vector of DebugStackData for the current suspended thread. |
ThreadReference | getCurrentThread() Returns the currently selected thread for the debugger. |
public synchronized Vector<DebugThreadData> | getCurrentThreadData() Returns a list of all threads being tracked by the debugger. |
EventRequestManager | getEventRequestManager() Returns the current EventRequestManager from JDI, or null if startUp() has not been called. |
static String | getPackageDir(String className) Returns the relative directory (from the source root) that the source file with this qualifed name will be in,
given its package. |
PendingRequestManager | getPendingRequestManager() Returns the pending request manager used by the debugger. |
Vector<ReferenceType> | getReferenceTypes(String className) Returns a Vector with all the loaded ReferenceTypes for the given class name (empty if the class could not be
found). |
synchronized Vector<ReferenceType> | getReferenceTypes(String className, int lineNumber) Returns a Vector with the loaded ReferenceTypes for the given class name
(empty if the class could not be found). |
ThreadReference | getThreadAt(int i) Returns the suspended thread at the current index of the stack. |
VirtualMachine | getVM() Accessor for the _vm field. |
public Vector<DebugWatchData> | getWatches() Returns all currently watched fields and variables. |
public synchronized boolean | hasRunningThread() Returns whether the thread the debugger is tracking is now running. |
public synchronized boolean | hasSuspendedThreads() Returns whether the debugger currently has any suspended threads. |
public boolean | isAvailable() Returns whether the debugger is available in this copy of DrJava. |
public synchronized boolean | isCurrentThreadSuspended() Returns whether the debugger's current thread is suspended. |
public boolean | isReady() Returns whether the debugger is currently enabled. |
void | nonCurrThreadDied() |
public synchronized void | notifyBreakpointChange(Breakpoint breakpoint) Enable or disable the specified breakpoint. |
void | notifyDebuggerShutdown() Notifies all listeners that the debugger has shut down. |
void | notifyDebuggerStarted() Notifies all listeners that the debugger has started. |
void | notifyStepRequested() Notifies all listeners that a step has been requested. |
public OpenDefinitionsDocument | preloadDocument(Location location) Return the document associated with this location. |
void | printMessage(String message) Prints a message in the Interactions Pane. |
synchronized void | reachedBreakpoint(BreakpointRequest request) Called when a breakpoint is reached. |
public synchronized void | removeAllWatches() Removes all watches on existing fields and variables. |
public synchronized void | removeBreakpoint(Breakpoint bp) Removes a breakpoint. |
public void | removeListener(DebugListener listener) Removes a listener to this JPDADebugger. |
public synchronized void | removeWatch(String field) Removes any watches on the given field or variable. |
public synchronized void | removeWatch(int index) Removes the watch at the given index. |
public synchronized void | resume() Resumes the thread currently being debugged, copying back all variables from the current debug interpreter. |
public synchronized void | resume(DebugThreadData threadData) Resumes the given thread, copying back any variables from its associated debug interpreter. |
public synchronized void | scrollToSource(DebugStackData stackData) Scrolls to the source location specified by the the debug stack data. |
public synchronized void | scrollToSource(Breakpoint bp) Scrolls to the source of the given breakpoint. |
public synchronized void | setBreakpoint(Breakpoint breakpoint) Sets a breakpoint. |
synchronized boolean | setCurrentThread(ThreadReference thread) Sets the debugger's currently active thread.
This method assumes that the given thread is already suspended.
Returns true if this actually changed the suspended thread
by pushing it onto the stack of suspended threads. |
public synchronized void | setCurrentThread(DebugThreadData threadData) Sets the notion of current thread to the one contained in threadData. |
public synchronized void | shutdown() Disconnects the debugger from the Interactions JVM and cleans up any state. |
public synchronized void | startUp() Attaches the debugger to the Interactions JVM to prepare for debugging. |
public synchronized void | step(StepType type) Steps the execution of the currently loaded document. |
void | threadStarted() Not synchronized because invokeLater is asynchronous. |
public synchronized void | toggleBreakpoint(OpenDefinitionsDocument doc, int offset, int lineNum, boolean isEnabled) Toggles whether a breakpoint is set at the given line in the given document. |