Package org.eclipse.epsilon.eol.dap
Class EpsilonDebugAdapter.ThreadState
java.lang.Object
org.eclipse.epsilon.eol.dap.EpsilonDebugAdapter.ThreadState
- All Implemented Interfaces:
IEpsilonDebugTarget
- Enclosing class:
- EpsilonDebugAdapter
Represents the debugger and other state needed to debug an execution thread. Some Epsilon scripts invoke other Epsilon scripts (specifically, EGX runs EGL scripts), so we treat the invoked script as its own execution thread.
The script may resolve breakpoints somewhat differently than the original one, so it has its own set of breakpoints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IEolDebugger
protected final IEolModule
protected final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
evaluateBreakpointCondition
(ModuleElement breakpointAst, int startLine, EpsilonDebugAdapter.BreakpointInfo bpInfo) org.eclipse.lsp4j.debug.EvaluateResponse
evaluateExpression
(String expression) int
boolean
boolean
protected BreakpointResult
setBreakpoint
(String sourcePath, Integer localLine, EpsilonDebugAdapter.BreakpointInfo info) void
suspend
(ModuleElement ast, SuspendReason reason) protected void
unverifyBreakpoint
(ModuleElement breakpointAst, int startLine, EpsilonDebugAdapter.BreakpointInfo bpInfo)
-
Field Details
-
threadId
protected final int threadId -
module
-
debugger
-
-
Constructor Details
-
ThreadState
-
-
Method Details
-
getThreadId
public int getThreadId() -
isTerminated
public boolean isTerminated()- Specified by:
isTerminated
in interfaceIEpsilonDebugTarget
-
hasBreakpointItself
- Specified by:
hasBreakpointItself
in interfaceIEpsilonDebugTarget
-
evaluateBreakpointCondition
protected boolean evaluateBreakpointCondition(ModuleElement breakpointAst, int startLine, EpsilonDebugAdapter.BreakpointInfo bpInfo) -
evaluateExpression
-
unverifyBreakpoint
protected void unverifyBreakpoint(ModuleElement breakpointAst, int startLine, EpsilonDebugAdapter.BreakpointInfo bpInfo) -
suspend
- Specified by:
suspend
in interfaceIEpsilonDebugTarget
- Throws:
InterruptedException
-
getModule
- Specified by:
getModule
in interfaceIEpsilonDebugTarget
-
setBreakpoint
protected BreakpointResult setBreakpoint(String sourcePath, Integer localLine, EpsilonDebugAdapter.BreakpointInfo info)
-