- All Implemented Interfaces:
Serializable,Comparable<StoppedEvent.StoppedReason>,Constable
- Enclosing class:
StoppedEvent
Represents the possible reasons why the debuggee execution stopped.
Each reason corresponds to a standard value defined by the Debug Adapter Protocol (DAP).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe execution stopped because a breakpoint was hit.The execution stopped due to an exception being thrown.The execution stopped because the user explicitly paused the debuggee.The execution stopped because a step operation (e.g., step over, step into) was completed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the string representation of this stop reason as expected by the DAP.static StoppedEvent.StoppedReasonReturns the enum constant of this class with the specified name.static StoppedEvent.StoppedReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STEP
The execution stopped because a step operation (e.g., step over, step into) was completed. -
BREAKPOINT
The execution stopped because a breakpoint was hit. -
EXCEPTION
The execution stopped due to an exception being thrown. -
PAUSE
The execution stopped because the user explicitly paused the debuggee.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getReason
Returns the string representation of this stop reason as expected by the DAP.- Returns:
- the DAP-compatible reason string
-