Class RemoteBreakpoint

java.lang.Object
org.eclipse.lsp4j.debug.Breakpoint
io.quarkus.qute.debug.agent.breakpoints.RemoteBreakpoint

public class RemoteBreakpoint extends org.eclipse.lsp4j.debug.Breakpoint
Represents a remote breakpoint set by the client through the Debug Adapter Protocol (DAP).

A RemoteBreakpoint extends the standard Breakpoint by adding Qute-specific features such as conditional breakpoints. A conditional breakpoint will only be triggered if its condition evaluates to true at runtime.

  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteBreakpoint(org.eclipse.lsp4j.debug.Source source, int line, String condition)
    Creates a new RemoteBreakpoint for a given source and line.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether this breakpoint should be triggered given the current RemoteStackFrame.
    Returns the raw condition expression, if any.
    boolean
    Returns whether this breakpoint has a condition.

    Methods inherited from class org.eclipse.lsp4j.debug.Breakpoint

    equals, getColumn, getEndColumn, getEndLine, getId, getInstructionReference, getLine, getMessage, getOffset, getReason, getSource, hashCode, isVerified, setColumn, setEndColumn, setEndLine, setId, setInstructionReference, setLine, setMessage, setOffset, setReason, setSource, setVerified, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RemoteBreakpoint

      public RemoteBreakpoint(org.eclipse.lsp4j.debug.Source source, int line, String condition)
      Creates a new RemoteBreakpoint for a given source and line.
      Parameters:
      source - the source file where the breakpoint is set
      line - the line number of the breakpoint
      condition - an optional condition expression, may be null or blank
  • Method Details

    • getCondition

      public String getCondition()
      Returns the raw condition expression, if any.
      Returns:
      the condition expression, or null if none
    • checkCondition

      public boolean checkCondition(RemoteStackFrame frame)
      Checks whether this breakpoint should be triggered given the current RemoteStackFrame.

      - If no condition is defined, the breakpoint always triggers. - If a condition exists, it is lazily parsed and evaluated against the provided stack frame context.

      Parameters:
      frame - the current stack frame during template execution
      Returns:
      true if the breakpoint should trigger, false otherwise
    • hasCondition

      public boolean hasCondition()
      Returns whether this breakpoint has a condition.
      Returns:
      true if a non-blank condition is set, false otherwise