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 IEolDebuggerprotected final IEolModuleprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanevaluateBreakpointCondition(ModuleElement breakpointAst, int startLine, EpsilonDebugAdapter.BreakpointInfo bpInfo) org.eclipse.lsp4j.debug.EvaluateResponseevaluateExpression(String expression) intbooleanbooleanprotected BreakpointResultsetBreakpoint(String sourcePath, Integer localLine, EpsilonDebugAdapter.BreakpointInfo info) voidsuspend(ModuleElement ast, SuspendReason reason) protected voidunverifyBreakpoint(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:
isTerminatedin interfaceIEpsilonDebugTarget
-
hasBreakpointItself
- Specified by:
hasBreakpointItselfin 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:
suspendin interfaceIEpsilonDebugTarget- Throws:
InterruptedException
-
getModule
- Specified by:
getModulein interfaceIEpsilonDebugTarget
-
setBreakpoint
protected BreakpointResult setBreakpoint(String sourcePath, Integer localLine, EpsilonDebugAdapter.BreakpointInfo info)
-