Class Py4jDebuggerEngine

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
All Implemented Interfaces:
Comparable<org.eclipse.core.internal.jobs.InternalJob>, org.eclipse.core.runtime.IAdaptable, IDebugEngine, IReplEngine, IScriptEngine, IPythonDebugEngine

public class Py4jDebuggerEngine extends Py4jScriptEngine implements IPythonDebugEngine
A script engine to debug Python code on a PY4J engine. Uses most of Py4jDebuggerEngine's functionality and only extends it when file is to be debugged.
  • Field Details

  • Constructor Details

    • Py4jDebuggerEngine

      public Py4jDebuggerEngine()
  • Method Details

    • setDebugger

      public void setDebugger(PythonDebugger debugger)
      Description copied from interface: IPythonDebugEngine
      Sets the PythonDebugger for the debug engine.
      Specified by:
      setDebugger in interface IPythonDebugEngine
      Parameters:
      debugger - PythonDebugger to be used.
    • getStackTrace

      public ScriptStackTrace getStackTrace()
      Description copied from interface: IDebugEngine
      Get the current stack trace. A trace is a stack starting with the root file executed by the engine. Function calls and files (called via include command) will be put on top of that stack. Each entry may contain a pointer to the current line number executed. Traces might be created dynamically on demand or accumulated during execution depending on the underlying engine.
      Specified by:
      getStackTrace in interface IDebugEngine
      Overrides:
      getStackTrace in class AbstractScriptEngine
      Returns:
      current stack trace
    • setupDebugger

      public void setupDebugger(org.eclipse.debug.core.ILaunch launch, boolean suspendOnStartup, boolean suspendOnScriptLoad, boolean showDynamicCode)
      Specified by:
      setupDebugger in interface IDebugEngine
    • removeVariable

      public Object removeVariable(String name)
      Description copied from interface: IDebugEngine
      Remove a variable from the scope.
      Specified by:
      removeVariable in interface IDebugEngine
      Parameters:
      name - variable to be removed.
      Returns:
      variable content
    • getVariables

      public Collection<EaseDebugVariable> getVariables(Object scope)
      Description copied from interface: IDebugEngine
      Get variables within a specific scope or child elements for a given object.
      Specified by:
      getVariables in interface IDebugEngine
      Parameters:
      scope - scope or parent object
      Returns:
      variables assigned to scope