java.lang.Object
io.quarkus.qute.debug.StoppedEvent
Represents a "stopped" event in the Qute debugger.
This event indicates that the execution of the debuggee has been paused due to a specific condition, such as hitting a breakpoint, completing a step, or encountering an exception.
It mirrors the DAP (
) invalid reference
org.eclipse.lsp4j.debugstopped event
and provides a simplified model for handling pause notifications in the Qute debugger.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the possible reasons why the debuggee execution stopped. -
Constructor Summary
ConstructorsConstructorDescriptionStoppedEvent(int threadId, StoppedEvent.StoppedReason reason) Creates a newStoppedEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reason in a format compatible with the DAP.Returns the reason why the execution was stopped.intReturns the unique identifier of the thread that was stopped.
-
Constructor Details
-
StoppedEvent
Creates a newStoppedEvent.- Parameters:
threadId- the unique identifier of the thread that was stoppedreason- the reason why the thread was stopped
-
-
Method Details
-
getThreadId
public int getThreadId()Returns the unique identifier of the thread that was stopped.- Returns:
- the thread ID
-
getStoppedReason
Returns the reason why the execution was stopped.- Returns:
- the
StoppedEvent.StoppedReasonthat caused the stop
-
getReason
Returns the reason in a format compatible with the DAP.This is useful when sending the event back to the client.
- Returns:
- the DAP reason string, never
null
-