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
ConstructorsConstructorDescriptionRemoteBreakpoint(org.eclipse.lsp4j.debug.Source source, int line, String condition) Creates a newRemoteBreakpointfor a given source and line. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckCondition(RemoteStackFrame frame) Checks whether this breakpoint should be triggered given the currentRemoteStackFrame.Returns the raw condition expression, if any.booleanReturns 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
-
Constructor Details
-
RemoteBreakpoint
Creates a newRemoteBreakpointfor a given source and line.- Parameters:
source- the source file where the breakpoint is setline- the line number of the breakpointcondition- an optional condition expression, may benullor blank
-
-
Method Details
-
getCondition
Returns the raw condition expression, if any.- Returns:
- the condition expression, or
nullif none
-
checkCondition
Checks whether this breakpoint should be triggered given the currentRemoteStackFrame.- 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:
trueif the breakpoint should trigger,falseotherwise
-
hasCondition
public boolean hasCondition()Returns whether this breakpoint has a condition.- Returns:
trueif a non-blank condition is set,falseotherwise
-