|
||||||||||
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 Debugger
public DebugModelCallback callback()
callback
in interface Debugger
public void startUp() throws DebugException
startUp
in interface Debugger
DebugException
public void shutdown()
shutdown
in interface Debugger
public boolean isReady()
isReady
in interface Debugger
public void suspend(DebugThreadData d)
public void suspendAll()
public void setCurrentThread(DebugThreadData d)
setCurrentThread
in interface Debugger
public void resume()
resume
in interface Debugger
public void resume(DebugThreadData data)
resume
in interface Debugger
data
- the DebugThreadData representing the thread to resumepublic void step(Debugger.StepType type) throws DebugException
step
in interface Debugger
DebugException
public void clearCurrentStepRequest()
public void addWatch(String field)
addWatch
in interface Debugger
field
- the name of the field we will watchpublic void removeWatch(String field)
removeWatch
in interface Debugger
field
- the name of the field we will watchpublic void removeWatch(int index)
removeWatch
in interface Debugger
index
- 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 Debugger
doc
- 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
DebugException
public void setBreakpoint(Breakpoint breakpoint)
setBreakpoint
in interface Debugger
breakpoint
- The new breakpoint to setpublic void removeBreakpoint(Breakpoint breakpoint)
removeBreakpoint
in interface Debugger
breakpoint
- The breakpoint to remove.public ArrayList<DebugWatchData> getWatches()
getWatches
in interface Debugger
public ArrayList<DebugThreadData> getCurrentThreadData()
getCurrentThreadData
in interface Debugger
public ArrayList<DebugStackData> getCurrentStackFrameData()
getCurrentStackFrameData
in interface Debugger
public void addListener(DebugListener listener)
addListener
in interface Debugger
listener
- a listener that reacts on events generated by the Debuggerpublic void removeListener(DebugListener listener)
removeListener
in interface Debugger
listener
- listener to removepublic boolean hasSuspendedThreads()
hasSuspendedThreads
in interface Debugger
public boolean hasRunningThread()
hasRunningThread
in interface Debugger
public boolean isCurrentThreadSuspended()
isCurrentThreadSuspended
in interface Debugger
public void scrollToSource(DebugStackData data)
scrollToSource
in interface Debugger
data
- the DebugStackData representing the source locationpublic void scrollToSource(Breakpoint bp)
scrollToSource
in interface Debugger
bp
- the Breakpoint representing the source locationpublic 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 |