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.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.
    • setupDebugger

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

      public ScriptStackTrace getExceptionStackTrace()
      Description copied from interface: IDebugEngine
      Get the stack trace of the last thrown exception of the current thread. Will be populated when an exception is thrown by the script engine. Can be evaluated in a try/catch statement within the script. Only available during script runtime.
      Specified by:
      getExceptionStackTrace in interface IDebugEngine
      Returns:
      last exception stack trace or null
    • getExceptionStackTrace

      public ScriptStackTrace getExceptionStackTrace​(Object thread)
      Description copied from interface: IDebugEngine
      Get the stack trace of the last thrown exception of the given thread. Will be populated when an exception is thrown by the script engine. Can be evaluated in a try/catch statement within the script. Only available during script runtime.
      Specified by:
      getExceptionStackTrace in interface IDebugEngine
      Parameters:
      thread - thread to get last exception stacktrace from
      Returns:
      last exception stack trace or null
    • 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