Package org.eclipse.ease.debugging
Class AbstractEaseDebugger
java.lang.Object
org.eclipse.ease.debugging.AbstractEaseDebugger
- All Implemented Interfaces:
IEventProcessor
,IExecutionListener
- Direct Known Subclasses:
PythonDebugger
public abstract class AbstractEaseDebugger
extends Object
implements IEventProcessor, IExecutionListener
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.eclipse.ease.IExecutionListener
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_START
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fireDispatchEvent
(IDebuggerEvent event) Helper method to raise event via dispatcher.getExceptionStacktrace
(Object thread) Get current stack trace.void
handleEvent
(IDebugEvent event) boolean
isTrackedScript
(Script script) Checks if the given script is tracked by debugger.void
notify
(IScriptEngine engine, Script script, int status) Notify function called by Eclipse EASE framework.void
setDispatcher
(EventDispatchJob dispatcher) Setter method for dispatcher.void
setScriptRegistry
(IScriptRegistry registry) Setter method for script registry for lookups between different types of file identifications.
-
Constructor Details
-
AbstractEaseDebugger
-
-
Method Details
-
setDispatcher
Setter method for dispatcher.- Specified by:
setDispatcher
in interfaceIEventProcessor
- Parameters:
dispatcher
- dispatcher for communication between debugger and debug target.
-
setScriptRegistry
Setter method for script registry for lookups between different types of file identifications.- Parameters:
registry
- Script registry to be used.
-
fireDispatchEvent
Helper method to raise event via dispatcher.- Parameters:
event
- Debug event to be raised.
-
handleEvent
- Specified by:
handleEvent
in interfaceIEventProcessor
-
notify
Notify function called by Eclipse EASE framework. Raises according events depending on status- Specified by:
notify
in interfaceIExecutionListener
- Parameters:
engine
- Script Enginescript
- Script ornull
status
- Event Status
-
isTrackedScript
Checks if the given script is tracked by debugger.- Parameters:
script
- Script to be checked.- Returns:
true
if script is being tracked by debugger.
-
getStacktrace
Get current stack trace. If the current trace is empty (script not started or terminated) we get an optional exception stack trace. This is by default empty and will only be filled when an exception is thrown.- Returns:
-
getExceptionStacktrace
-
getExceptionStacktrace
-