Linux Mac OSX Windows

  
[scriptable, uuid(f102caf6-1dd1-11b2-bd43-c1dbacb95a98)]
interface jsdICallHook : nsISupports

Constants

 Hook instances of this interface up to the
 jsdIDebuggerService::functionHook and toplevelHook properties.


 TYPE_* values must be kept in sync with the JSD_HOOK_* #defines
 in jsdebug.h.


 Toplevel script is starting.
const unsigned long TYPE_TOPLEVEL_START = 0
 Toplevel script has completed.
const unsigned long TYPE_TOPLEVEL_END = 1
 Function is being called.
const unsigned long TYPE_FUNCTION_CALL = 2
 Function is returning.
const unsigned long TYPE_FUNCTION_RETURN = 3

Methods

 Called before the JavaScript engine executes a top level script or calls
 a function.
void onCall(in jsdIStackFrame frame, in unsigned long type)