Package stdlib
Class JDIEventMonitor
java.lang.Object
java.lang.Thread
stdlib.JDIEventMonitor
- All Implemented Interfaces:
Runnable
Monitor incoming JDI events for a program running in the JVM and print out
trace/debugging information.
This is a simplified version of EventThread.java from the Trace.java example
in the demo/jpda/examples.jar file in the JDK.
Andrew Davison: The main addition is the use of the ShowCodes and ShowLines
classes to list the line being currently executed.
James Riely: See comments in class Trace.
- Author:
- Robert Field and Minoru Terada, September 2005, Iman_S, June 2008, Andrew Davison, ad@fivedots.coe.psu.ac.th, March 2009, James Riely, jriely@cs.depaul.edu, August 2014
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final JDIEventHandler
private final VirtualMachine
private boolean
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
classUnloadEvent
(ClassUnloadEvent event) private void
exceptionEvent
(ExceptionEvent event) private void
private void
handleEvent
(Event event) private void
methodEntryEvent
(MethodEntryEvent event) private void
methodExitEvent
(MethodExitEvent event) private void
private void
private void
private void
private void
monitorWaitEvent
(MonitorWaitEvent event) void
run()
private void
private void
private void
threadDeathEvent
(ThreadDeathEvent event) private void
threadStartEvent
(ThreadStartEvent event) private void
vmDeathEvent
(VMDeathEvent event) private void
private void
vmStartEvent
(VMStartEvent event) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
vm
-
connected
-
vmDied
-
printer
-
-
Constructor Details
-
JDIEventMonitor
-
-
Method Details
-
setEventRequests
-
run
-
handleEvent
-
handleDisconnectedException
-
vmStartEvent
-
vmDeathEvent
-
vmDisconnectEvent
-
classPrepareEvent
-
classUnloadEvent
-
threadStartEvent
-
threadDeathEvent
-
methodEntryEvent
-
methodExitEvent
-
exceptionEvent
-
stepEvent
-
modificationWatchpointEvent
-
monitorContendedEnterEvent
-
monitorContendedEnteredEvent
-
monitorWaitEvent
-
monitorWaitedEvent
-