|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.debug.NoDebuggerAvailable
public class NoDebuggerAvailable
Placeholder class indicating that no debugger is available to DrJava. This class follows the Singleton pattern.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.rice.cs.drjava.model.debug.Debugger |
|---|
Debugger.StepType |
| Field Summary | |
|---|---|
static NoDebuggerAvailable |
ONLY
Singleton instance of this class. |
| Method Summary | |
|---|---|
void |
addListener(DebugListener listener)
Adds a listener to this Debugger. |
void |
addWatch(String field)
Adds a watch on the given field or variable. |
DebugModelCallback |
callback()
|
void |
clearCurrentStepRequest()
Called from interactionsEnded in MainFrame in order to clear any current StepRequests that remain. |
Breakpoint |
getBreakpoint(int line,
String className)
Gets the Breakpoint object at the specified line in the given class. |
ArrayList<DebugStackData> |
getCurrentStackFrameData()
Returns a Vector of StackData for the current thread or null if the current thread is null. |
ArrayList<DebugThreadData> |
getCurrentThreadData()
Returns a Vector of ThreadData or null if the vm is null. |
ArrayList<DebugWatchData> |
getWatches()
Returns all currently watched fields and variables. |
boolean |
hasRunningThread()
Returns whether the thread the debugger is tracking is now running. |
boolean |
hasSuspendedThreads()
|
boolean |
isAvailable()
Returns whether the debugger is currently available in this JVM. |
boolean |
isCurrentThreadSuspended()
Returns whether the debugger's current thread is suspended. |
boolean |
isReady()
Returns the status of the debugger. |
void |
removeAllWatches()
Removes all watches on existing fields and variables. |
void |
removeBreakpoint(Breakpoint breakpoint)
Removes a breakpoint. |
void |
removeListener(DebugListener listener)
Removes a listener to this JPDADebugger. |
void |
removeWatch(int index)
Removes the watch at the given index. |
void |
removeWatch(String field)
Removes any watches on the given field or variable. |
void |
resume()
Resumes execution of the currently loaded document. |
void |
resume(DebugThreadData data)
Resumes execution of the given thread. |
void |
scrollToSource(Breakpoint bp)
Scrolls to the source indicated by the given Breakpoint |
void |
scrollToSource(DebugStackData data)
Scrolls to the source indicated by the given DebugStackData |
void |
setBreakpoint(Breakpoint breakpoint)
Sets a breakpoint. |
void |
setCurrentThread(DebugThreadData d)
Sets the current thread which is being debugged to the thread referenced by d. |
void |
shutdown()
Disconnects the debugger from the Interactions JVM and cleans up any state. |
void |
startUp()
Attaches the debugger to the Interactions JVM to prepare for debugging. |
void |
step(Debugger.StepType type)
Steps the execution of the currently loaded document. |
void |
suspend(DebugThreadData d)
Suspends execution of the currently. |
void |
suspendAll()
Suspends all the threads. |
boolean |
toggleBreakpoint(OpenDefinitionsDocument doc,
int offset,
int lineNum,
boolean isEnabled)
Toggles whether a breakpoint is set at the given line in the given document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NoDebuggerAvailable ONLY
| Method Detail |
|---|
public boolean isAvailable()
isAvailable in interface Debuggerpublic DebugModelCallback callback()
callback in interface Debugger
public void startUp()
throws DebugException
startUp in interface DebuggerDebugExceptionpublic void shutdown()
shutdown in interface Debuggerpublic boolean isReady()
isReady in interface Debuggerpublic void suspend(DebugThreadData d)
public void suspendAll()
public void setCurrentThread(DebugThreadData d)
setCurrentThread in interface Debuggerpublic void resume()
resume in interface Debuggerpublic void resume(DebugThreadData data)
resume in interface Debuggerdata - the DebugThreadData representing the thread to resume
public void step(Debugger.StepType type)
throws DebugException
step in interface DebuggerDebugExceptionpublic void clearCurrentStepRequest()
public void addWatch(String field)
addWatch in interface Debuggerfield - the name of the field we will watchpublic void removeWatch(String field)
removeWatch in interface Debuggerfield - the name of the field we will watchpublic void removeWatch(int index)
removeWatch in interface Debuggerindex - Index of the watch to removepublic void removeAllWatches()
removeAllWatches in interface Debugger
public boolean toggleBreakpoint(OpenDefinitionsDocument doc,
int offset,
int lineNum,
boolean isEnabled)
throws DebugException
toggleBreakpoint in interface Debuggerdoc - Document in which to set or remove the breakpointoffset - Start offset on the line to set the breakpointlineNum - Line on which to set or remove the breakpoint, >=1isEnabled - true if this breakpoint should be enabled
DebugExceptionpublic void setBreakpoint(Breakpoint breakpoint)
setBreakpoint in interface Debuggerbreakpoint - The new breakpoint to setpublic void removeBreakpoint(Breakpoint breakpoint)
removeBreakpoint in interface Debuggerbreakpoint - The breakpoint to remove.public ArrayList<DebugWatchData> getWatches()
getWatches in interface Debuggerpublic ArrayList<DebugThreadData> getCurrentThreadData()
getCurrentThreadData in interface Debuggerpublic ArrayList<DebugStackData> getCurrentStackFrameData()
getCurrentStackFrameData in interface Debuggerpublic void addListener(DebugListener listener)
addListener in interface Debuggerlistener - a listener that reacts on events generated by the Debuggerpublic void removeListener(DebugListener listener)
removeListener in interface Debuggerlistener - listener to removepublic boolean hasSuspendedThreads()
hasSuspendedThreads in interface Debuggerpublic boolean hasRunningThread()
hasRunningThread in interface Debuggerpublic boolean isCurrentThreadSuspended()
isCurrentThreadSuspended in interface Debuggerpublic void scrollToSource(DebugStackData data)
scrollToSource in interface Debuggerdata - the DebugStackData representing the source locationpublic void scrollToSource(Breakpoint bp)
scrollToSource in interface Debuggerbp - the Breakpoint representing the source location
public Breakpoint getBreakpoint(int line,
String className)
getBreakpoint in interface Debugger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||