public class Py4jDebuggerEngine extends Py4jScriptEngine implements IPythonDebugEngine
Py4jDebuggerEngine
's functionality and only extends it when file is to be debugged.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENGINE_ID |
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
TRACE_SCRIPT_ENGINE
Constructor and Description |
---|
Py4jDebuggerEngine() |
Modifier and Type | Method and Description |
---|---|
ScriptStackTrace |
getExceptionStackTrace()
Get the stack trace of the last thrown exception of the current thread.
|
ScriptStackTrace |
getExceptionStackTrace(java.lang.Object thread)
Get the stack trace of the last thrown exception of the given thread.
|
java.util.Collection<EaseDebugVariable> |
getVariables(java.lang.Object scope)
Get variables within a specific scope or child elements for a given object
|
java.lang.Object |
removeVariable(java.lang.String name)
Remove a variable from the scope.
|
void |
setDebugger(PythonDebugger debugger)
Sets the PythonDebugger for the debug engine.
|
void |
setupDebugger(ILaunch launch,
boolean suspendOnStartup,
boolean suspendOnScriptLoad,
boolean showDynamicCode) |
getAdapter, pythonStartupComplete, registerJar, terminateCurrent, toString
getDefinedVariables, getLastExecutionResult, getTerminateOnIdle, getType, isIdle, setTerminateOnIdle, terminate
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getMonitor, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setLaunch, setOutputStream, setVariable
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStackTrace
addExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getMonitor, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, registerJar, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable, terminate, terminateCurrent
public static final java.lang.String ENGINE_ID
public void setDebugger(PythonDebugger debugger)
IPythonDebugEngine
setDebugger
in interface IPythonDebugEngine
debugger
- PythonDebugger
to be used.public void setupDebugger(ILaunch launch, boolean suspendOnStartup, boolean suspendOnScriptLoad, boolean showDynamicCode)
setupDebugger
in interface IDebugEngine
public ScriptStackTrace getExceptionStackTrace()
IDebugEngine
getExceptionStackTrace
in interface IDebugEngine
null
public ScriptStackTrace getExceptionStackTrace(java.lang.Object thread)
IDebugEngine
getExceptionStackTrace
in interface IDebugEngine
thread
- thread to get last exception stacktrace fromnull
public java.lang.Object removeVariable(java.lang.String name)
IDebugEngine
removeVariable
in interface IDebugEngine
name
- variable to be removed.public java.util.Collection<EaseDebugVariable> getVariables(java.lang.Object scope)
IDebugEngine
getVariables
in interface IDebugEngine
scope
- scope or parent object