1 33 34 package edu.rice.cs.drjava.model.debug; 35 36 import java.util.Vector ; 37 import edu.rice.cs.drjava.model.DocumentRegion; 38 import edu.rice.cs.drjava.model.OpenDefinitionsDocument; 39 40 import com.sun.jdi.request.StepRequest; 41 42 46 public interface Debugger { 47 public static final int STEP_INTO = StepRequest.STEP_INTO; 48 public static final int STEP_OVER = StepRequest.STEP_OVER; 49 public static final int STEP_OUT = StepRequest.STEP_OUT; 50 51 54 public void addListener(DebugListener listener); 55 56 59 public void removeListener(DebugListener listener); 60 61 64 public boolean isAvailable(); 65 66 67 public void startUp() throws DebugException; 68 69 70 public void shutdown(); 71 72 73 public boolean isReady(); 74 75 78 81 82 public void setCurrentThread(DebugThreadData d) throws DebugException; 83 84 85 public void resume() throws DebugException; 86 87 90 public void resume(DebugThreadData data) throws DebugException; 91 92 98 public void step(int flag) throws DebugException; 99 100 103 public void addWatch(String field) throws DebugException; 104 105 108 public void removeWatch(String field) throws DebugException; 109 110 113 public void removeWatch(int index) throws DebugException; 114 115 116 public void removeAllWatches() throws DebugException; 117 118 119 125 public void toggleBreakpoint(OpenDefinitionsDocument doc, int offset, int lineNum, boolean isEnabled) throws DebugException; 126 127 130 public void setBreakpoint(final Breakpoint breakpoint) throws DebugException; 131 132 135 public void removeBreakpoint(final Breakpoint breakpoint) throws DebugException; 136 137 138 public Vector <DebugWatchData> getWatches() throws DebugException; 139 140 141 public Vector <DebugThreadData> getCurrentThreadData() throws DebugException; 142 143 144 public Vector <DebugStackData> getCurrentStackFrameData() throws DebugException; 145 146 150 public boolean hasSuspendedThreads() throws DebugException; 151 152 155 public boolean hasRunningThread() throws DebugException; 156 157 160 public boolean isCurrentThreadSuspended() throws DebugException; 161 162 166 public void scrollToSource(DebugStackData data) throws DebugException; 167 168 172 public void scrollToSource(Breakpoint bp); 173 174 182 public Breakpoint getBreakpoint(int line, String className) throws DebugException; 183 } 184 | Popular Tags |