com.sun.jdi.event (Java SE 11 & JDK 11 )
Keywords: com.sun.jdi.event package

Module jdk.jdi

# Package com.sun.jdi.event

This package defines JDI events and event processing. An `Event` is always a member of an `EventSet`, which is retrieved from the `EventQueue`. Examples of Events include `"breakpoints events"`, `"thread creation events"` and `"virtual machine death event"`. With the exception of termination events, all events received must be requested with an `"EventRequest"`. The `com.sun.jdi.request` package defines event requests and event request management.

Methods may be added to the interfaces in the JDI packages in future releases. Existing packages may be renamed if the JDI becomes a standard extension.

- Interface Summary
  Interface | Description
  --- | ---
  AccessWatchpointEvent | Notification of a field access in the target VM.
  BreakpointEvent | Notification of a breakpoint in the target VM.
  ClassPrepareEvent | Notification of a class prepare in the target VM.
  ClassUnloadEvent | Notification of a class unload in the target VM.
  Event | An occurrence in a target VM that is of interest to a debugger.
  EventIterator | EventIterators are unmodifiable.
  EventQueue | Manager of incoming debugger events for a target VM.
  EventSet | Several `Event` objects may be created at a given time by the target `VirtualMachine`.
  ExceptionEvent | Notification of an exception in the target VM.
  LocatableEvent | Abstract superinterface of events which have both location and thread.
  MethodEntryEvent | Notification of a method invocation in the target VM.
  MethodExitEvent | Notification of a method return in the target VM.
  ModificationWatchpointEvent | Notification of a field modification in the target VM.
  MonitorContendedEnteredEvent | Notification that a thread in the target VM is entering a monitor after waiting for it to be released by another thread.
  MonitorContendedEnterEvent | Notification that a thread in the target VM is attempting to enter a monitor that is already acquired by another thread.
  MonitorWaitedEvent | Notification that a thread in the target VM has finished waiting on an monitor object.
  MonitorWaitEvent | Notification that a thread in the target VM is about to wait on a monitor object.
  StepEvent | Notification of step completion in the target VM.
  ThreadDeathEvent | Notification of a completed thread in the target VM.
  ThreadStartEvent | Notification of a new running thread in the target VM.
  VMDeathEvent | Notification of target VM termination.
  VMDisconnectEvent | Notification of disconnection from target VM.
  VMStartEvent | Notification of initialization of a target VM.
  WatchpointEvent | Notification of a field triggered event encountered by a thread in the target VM.