Public Types | Public Member Functions | Public Attributes

jsdICallHook Interface Reference

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

import "jsdIDebuggerService.idl";

List of all members.

Public Types

enum  { TYPE_TOPLEVEL_START = 0U }
 

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

More...
enum  { TYPE_TOPLEVEL_END = 1U }
 

Toplevel script has completed.

More...
enum  { TYPE_FUNCTION_CALL = 2U }
 

Function is being called.

More...
enum  { TYPE_FUNCTION_RETURN = 3U }
 

Function is returning.

More...

Public Member Functions

virtual nsresult OnCall (jsdIStackFrame *frame, PRUint32 type)=0
 Called before the JavaScript engine executes a top level script or calls a function.
void onCall (in jsdIStackFrame frame, in unsigned long type)
 Called before the JavaScript engine executes a top level script or calls a function.

Public Attributes

const unsigned long TYPE_TOPLEVEL_START = 0
 TYPE_* values must be kept in sync with the JSD_HOOK_* defines in jsdebug.h.
const unsigned long TYPE_TOPLEVEL_END = 1
 Toplevel script has completed.
const unsigned long TYPE_FUNCTION_CALL = 2
 Function is being called.
const unsigned long TYPE_FUNCTION_RETURN = 3
 Function is returning.

Detailed Description

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


Member Enumeration Documentation

anonymous enum

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.

Enumerator:
TYPE_TOPLEVEL_START 
anonymous enum

Toplevel script has completed.

Enumerator:
TYPE_TOPLEVEL_END 
anonymous enum

Function is being called.

Enumerator:
TYPE_FUNCTION_CALL 
anonymous enum

Function is returning.

Enumerator:
TYPE_FUNCTION_RETURN 

Member Function Documentation

virtual nsresult jsdICallHook::OnCall ( jsdIStackFrame frame,
PRUint32  type 
) [pure virtual]

Called before the JavaScript engine executes a top level script or calls a function.

void jsdICallHook::onCall ( in jsdIStackFrame  frame,
in unsigned long  type 
)

Called before the JavaScript engine executes a top level script or calls a function.


Member Data Documentation

const unsigned long jsdICallHook::TYPE_FUNCTION_CALL = 2

Function is being called.

const unsigned long jsdICallHook::TYPE_FUNCTION_RETURN = 3

Function is returning.

const unsigned long jsdICallHook::TYPE_TOPLEVEL_END = 1

Toplevel script has completed.

const unsigned long jsdICallHook::TYPE_TOPLEVEL_START = 0

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

Toplevel script is starting.


The documentation for this interface was generated from the following files: