public class PythonDebugger extends AbstractScriptDebugger implements IEventProcessor, IExecutionListener
| Modifier and Type | Class and Description |
|---|---|
class |
PythonDebugger.PythonDebugFrame
Custom
ScriptDebugFrame parsing the data from IPyFrame to more usable format. |
| Modifier and Type | Field and Description |
|---|---|
static String |
PYTHON_DEBUGGER_VARIABLE
Variable name for
PythonDebugger in Python engine. |
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_START| Constructor and Description |
|---|
PythonDebugger(IDebugEngine engine,
boolean showDynamicCode) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Script script)
Runs the given
Script using the ICodeTracer. |
void |
handleEvent(IDebugEvent event)
Function called to handle incoming event.
|
void |
setCodeTracer(ICodeTracer tracer)
Sets the
ICodeTracer from the Python implementation. |
void |
traceDispatch(IPyFrame frame,
String type)
Function called from
ICodeTracer whenever a new frame in Python is hit. |
getExceptionStacktrace, getStacktrace, notify, setDispatcherequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifypublic static final String PYTHON_DEBUGGER_VARIABLE
PythonDebugger in Python engine.
During setup phase set this variable BEFORE calling edb.py
public PythonDebugger(IDebugEngine engine, boolean showDynamicCode)
AbstractScriptDebugger#AbstractScriptDebugger(IScriptEngine, boolean)public void setCodeTracer(ICodeTracer tracer)
ICodeTracer from the Python implementation.
This method will be called by edb.py on "_pyease_debugger".
tracer - ICodeTracer for the connection between Eclipse and Python.public void handleEvent(IDebugEvent event)
handleEvent in interface IEventProcessorhandleEvent in class AbstractScriptDebuggerpublic void traceDispatch(IPyFrame frame, String type)
ICodeTracer whenever a new frame in Python is hit.
Effectively checks if debugger should supsend or continue.
frame - IPyFrame for current execution point.type - Type of trace step that occured (ignored).