Package editor.debugger
Class Debugger
java.lang.Object
editor.debugger.Debugger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final BreakpointManagerprivate ExperimentBuildprivate Threadprivate com.sun.jdi.event.EventIteratorprivate Stringprivate com.sun.jdi.event.EventSetprivate com.sun.jdi.ThreadReferenceprivate com.sun.jdi.Locationprivate final Objectprivate final HashSet<com.sun.jdi.ObjectReference>private booleanprivate com.sun.jdi.VirtualMachineprivate booleanprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidvoidaddChangeListener(Consumer<Debugger> listener) private voidaddPendingBreakpointFor(String className) private voidassignSuspendedState(com.sun.jdi.event.LocatableEvent event, boolean temporary) private voidprivate voidprivate com.sun.jdi.request.StepRequestcreateStep(com.sun.jdi.ThreadReference eventThread, int depth) private voidvoiddropToFrame(com.sun.jdi.StackFrame frame) private com.sun.jdi.request.EventRequestManagerprivate GosuPanelstatic StringgetOutermostType(com.sun.jdi.ReferenceType type) com.sun.jdi.Locationcom.sun.jdi.ThreadReferenceList<com.sun.jdi.ThreadReference>private voidhandleBreakpointEvent(com.sun.jdi.event.LocatableEvent event) private voidhandleClassPrepareEvent(com.sun.jdi.event.ClassPrepareEvent event) private voidhandleExceptionEvent(com.sun.jdi.event.ExceptionEvent event) private voidhandleStepEvent(com.sun.jdi.event.StepEvent event) private voidhandleSuspendLocatableEvent(com.sun.jdi.event.LocatableEvent event) private voidprivate voidprivate voidprivate booleanisFirstFrame(com.sun.jdi.StackFrame frame) booleanisPaused()booleanvoidmuteBreakpoints(boolean mute) private voidvoidpause()private voidquit()voidredefineClasses(List<CompiledClass> listCompiledClasses) private voidvoidbooleanremoveChangeListener(Consumer<Debugger> listener) private voidresumed(boolean silent) voidprivate voidresumeProgram(boolean silent) voidretain(com.sun.jdi.ObjectReference ref) private voidrun()voidprivate voidstep(int depth) voidstepInto()voidstepOut()voidstepOver()private voidstopDebugging(boolean bKill) private voidtoString()
-
Field Details
-
TEMPORARY
- See Also:
-
FROM_LOCATION
- See Also:
-
BACK_OUT_LOCATION
- See Also:
-
_debuggerThread
-
_bpm
-
_vm
private com.sun.jdi.VirtualMachine _vm -
_eventSet
private com.sun.jdi.event.EventSet _eventSet -
_vmExit
private boolean _vmExit -
_location
private com.sun.jdi.Location _location -
_eventThread
private com.sun.jdi.ThreadReference _eventThread -
_classPrepareRequests
-
_monitor
-
_bPaused
private boolean _bPaused -
_listeners
-
_eventName
-
_refs
-
_temporarilySuspended
private boolean _temporarilySuspended -
_eventIterator
private com.sun.jdi.event.EventIterator _eventIterator -
_classRedefiner
-
-
Constructor Details
-
Debugger
-
-
Method Details
-
startDebugging
public void startDebugging() -
resumeExecution
public void resumeExecution() -
getSuspendedLocation
public com.sun.jdi.Location getSuspendedLocation() -
getSuspendedThread
public com.sun.jdi.ThreadReference getSuspendedThread() -
assignSuspendedState
private void assignSuspendedState(com.sun.jdi.event.LocatableEvent event, boolean temporary) -
clearSuspendedState
private void clearSuspendedState() -
addChangeListener
-
removeChangeListener
-
notifyListeners
private void notifyListeners() -
getEventName
-
toString
-
muteBreakpoints
public void muteBreakpoints(boolean mute) -
run
private void run() -
handleStepEvent
private void handleStepEvent(com.sun.jdi.event.StepEvent event) -
getEventRequestManager
private com.sun.jdi.request.EventRequestManager getEventRequestManager() -
handleBreakpointEvent
private void handleBreakpointEvent(com.sun.jdi.event.LocatableEvent event) -
consumeRemainingEvents
private void consumeRemainingEvents() -
handleExceptionEvent
private void handleExceptionEvent(com.sun.jdi.event.ExceptionEvent event) -
handleVMStartEvent
private void handleVMStartEvent() -
handleClassPrepareEvent
private void handleClassPrepareEvent(com.sun.jdi.event.ClassPrepareEvent event) -
handleVMDeathEvent
private void handleVMDeathEvent() -
handleVMDisconnectEvent
private void handleVMDisconnectEvent() -
quit
private void quit() -
handleSuspendLocatableEvent
private void handleSuspendLocatableEvent(com.sun.jdi.event.LocatableEvent event) -
isSuspended
public boolean isSuspended() -
stepOver
public void stepOver() -
stepInto
public void stepInto() -
stepOut
public void stepOut() -
step
private void step(int depth) -
createStep
private com.sun.jdi.request.StepRequest createStep(com.sun.jdi.ThreadReference eventThread, int depth) -
isPaused
public boolean isPaused() -
pause
public void pause() -
dropToFrame
public void dropToFrame(com.sun.jdi.StackFrame frame) -
isFirstFrame
private boolean isFirstFrame(com.sun.jdi.StackFrame frame) throws com.sun.jdi.IncompatibleThreadStateException - Throws:
com.sun.jdi.IncompatibleThreadStateException
-
addBreakpoints
private void addBreakpoints() -
addBreakpointJdi
-
deferAddVmBreakpoint
-
removeBreakpointJdi
-
addPendingBreakpointFor
-
resumeProgram
private void resumeProgram(boolean silent) -
stopDebugging
private void stopDebugging(boolean bKill) -
suspended
private void suspended() -
resumed
private void resumed(boolean silent) -
retain
public void retain(com.sun.jdi.ObjectReference ref) -
releaseRefs
private void releaseRefs() -
getOutermostType
-
getGosuPanel
-
getThreads
-
getClassRedefiner
-
redefineClasses
-