Package editor.debugger
Class Debugger
java.lang.Object
editor.debugger.Debugger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final BreakpointManager
private ExperimentBuild
private Thread
private com.sun.jdi.event.EventIterator
private String
private com.sun.jdi.event.EventSet
private com.sun.jdi.ThreadReference
private com.sun.jdi.Location
private final Object
private final HashSet<com.sun.jdi.ObjectReference>
private boolean
private com.sun.jdi.VirtualMachine
private boolean
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
addChangeListener
(Consumer<Debugger> listener) private void
addPendingBreakpointFor
(String className) private void
assignSuspendedState
(com.sun.jdi.event.LocatableEvent event, boolean temporary) private void
private void
private com.sun.jdi.request.StepRequest
createStep
(com.sun.jdi.ThreadReference eventThread, int depth) private void
void
dropToFrame
(com.sun.jdi.StackFrame frame) private com.sun.jdi.request.EventRequestManager
private GosuPanel
static String
getOutermostType
(com.sun.jdi.ReferenceType type) com.sun.jdi.Location
com.sun.jdi.ThreadReference
List<com.sun.jdi.ThreadReference>
private void
handleBreakpointEvent
(com.sun.jdi.event.LocatableEvent event) private void
handleClassPrepareEvent
(com.sun.jdi.event.ClassPrepareEvent event) private void
handleExceptionEvent
(com.sun.jdi.event.ExceptionEvent event) private void
handleStepEvent
(com.sun.jdi.event.StepEvent event) private void
handleSuspendLocatableEvent
(com.sun.jdi.event.LocatableEvent event) private void
private void
private void
private boolean
isFirstFrame
(com.sun.jdi.StackFrame frame) boolean
isPaused()
boolean
void
muteBreakpoints
(boolean mute) private void
void
pause()
private void
quit()
void
redefineClasses
(List<CompiledClass> listCompiledClasses) private void
void
boolean
removeChangeListener
(Consumer<Debugger> listener) private void
resumed
(boolean silent) void
private void
resumeProgram
(boolean silent) void
retain
(com.sun.jdi.ObjectReference ref) private void
run()
void
private void
step
(int depth) void
stepInto()
void
stepOut()
void
stepOver()
private void
stopDebugging
(boolean bKill) private void
toString()
-
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
-