KJS::Debugger Class Reference
List of all members.Detailed Description
Definition at line 52 of file debugger.h.
Public Member Functions | |
Debugger () | |
virtual | ~Debugger () |
DebuggerImp * | imp () const |
void | attach (Interpreter *interp) |
void | detach (Interpreter *interp) |
virtual bool | sourceParsed (ExecState *exec, int sourceId, const UString &source, int errorLine) |
virtual bool | sourceUnused (ExecState *exec, int sourceId) |
virtual bool | exception (ExecState *exec, const Value &value, bool inTryCatch) |
virtual bool | atStatement (ExecState *exec) |
virtual bool | enterContext (ExecState *exec) |
virtual bool | exitContext (ExecState *exec, const Completion &completion) |
Constructor & Destructor Documentation
|
Creates a new debugger.
Definition at line 46 of file debugger.cpp. |
|
Destroys the debugger. If the debugger is attached to any interpreters, it is automatically detached. Definition at line 51 of file debugger.cpp. |
Member Function Documentation
|
Called when a line of the script is reached (before it is executed). The exec pointer's Context object can be inspected to determine the line number and sourceId of the statement. The default implementation does nothing. Override this method if you want to process this event.
Definition at line 119 of file debugger.cpp. |
|
Attaches the debugger to specified interpreter. This will cause this object to receive notification of events from the interpreter. If the interpreter is deleted, the debugger will automatically be detached. Note: only one debugger can be attached to an interpreter at a time. Attaching another debugger to the same interpreter will cause the original debugger to be detached from that interpreter.
Definition at line 60 of file debugger.cpp. |
|
Detach the debugger from an interpreter.
Definition at line 76 of file debugger.cpp. |
|
Called when the interpreter enters a new execution context (stack frame). This can happen in three situations:
enterContext() is not called for functions implemented in the native code, since these do not use an execution context.
Definition at line 124 of file debugger.cpp. |
|
Called when an exception is thrown during script execution. The default implementation does nothing. Override this method if you want to process this event.
Definition at line 113 of file debugger.cpp. |
|
Called when the inteprreter exits an execution context. This always corresponds to a previous call to enterContext()
Definition at line 129 of file debugger.cpp. |
|
Called to notify the debugger that some javascript source code has been parsed. For calls to Interpreter::evaluate(), this will be called with the supplied source code before any other code is parsed. Other situations in which this may be called include creation of a function using the Function() constructor, or the eval() function. The default implementation does nothing. Override this method if you want to process this event.
Definition at line 102 of file debugger.cpp. |
|
Called when all functions/programs associated with a particular sourceId have been deleted. After this function has been called for a particular sourceId, that sourceId will not be used again. The default implementation does nothing. Override this method if you want to process this event.
Definition at line 108 of file debugger.cpp. |
The documentation for this class was generated from the following files: