Class StoppedEvent

java.lang.Object
io.quarkus.qute.debug.StoppedEvent

public class StoppedEvent extends Object
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.debug
) stopped event and provides a simplified model for handling pause notifications in the Qute debugger.

See Also:
  • StoppedEventArguments
  • Constructor Details

    • StoppedEvent

      public StoppedEvent(int threadId, StoppedEvent.StoppedReason reason)
      Creates a new StoppedEvent.
      Parameters:
      threadId - the unique identifier of the thread that was stopped
      reason - 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

      public StoppedEvent.StoppedReason getStoppedReason()
      Returns the reason why the execution was stopped.
      Returns:
      the StoppedEvent.StoppedReason that caused the stop
    • getReason

      public String 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