The JSDBG API is obsolete and has been removed in SpiderMonkey 35. See bug 1069694.
Breakpoints
JS_SetTrapJS_GetTrapOpcodeJS_ClearTrapJS_ClearScriptTrapsJS_ClearAllTrapsJS_HandleTrapJS_SetInterruptJS_ClearInterrupt
Watchpoints
JS_SetWatchPointJS_ClearWatchPointJS_ClearWatchPointsForObjectJS_ClearAllWatchPoints
Inspecting the stack
JS_PCToLineNumberJS_LineNumberToPCJS_GetFunctionScriptJS_GetFunctionNativeJS_GetFunctionFastNativeJS_GetScriptPrincipals
- typedef
JSStackFrame JS_FrameIteratorJS_GetFrameScriptJS_GetFramePCJS_GetScriptedCallerJS_StackFramePrincipalsJS_EvalFramePrincipalsJS_GetFrameAnnotationJS_SetFrameAnnotationJS_GetFramePrincipalArrayJS_IsNativeFrameJS_GetFrameObjectJS_GetFrameScopeChainJS_GetFrameCallObjectJS_GetFrameThisJS_GetFrameFunctionJS_GetFrameFunctionObjectJS_IsConstructorFrameJS_IsDebuggerFrameJS_GetFrameReturnValueJS_SetFrameReturnValueJS_GetFrameCalleeObject
JS_GetScriptFilenameJS_GetScriptBaseLineNumberJS_GetScriptLineExtentJS_GetScriptVersion
JS_GetTopScriptFilenameFlagsJS_GetScriptFilenameFlagsJS_FlagScriptFilenamePrefix
JSFILENAME_NULLJSFILENAME_SYSTEMJSFILENAME_PROTECTED
Evaluating debug code
JS_EvaluateInStackFrame
Examining object properties
- typedef
JSPropertyDesc
JSPD_ENUMERATEJSPD_READONLYJSPD_PERMANENTJSPD_ALIASJSPD_ARGUMENTJSPD_VARIABLEJSPD_EXCEPTIONJSPD_ERROR
- typedef
JSPropertyDescArray
JS_PropertyIteratorJS_GetPropertyDescJS_GetPropertyDescArrayJS_PutPropertyDescArray
Hooks
JS_SetDebuggerHandlerJS_SetSourceHandlerJS_SetExecuteHookJS_SetCallHookJS_SetObjectHookJS_SetThrowHookJS_SetDebugErrorHookJS_SetNewScriptHookJS_SetDestroyScriptHook
JS_GetGlobalDebugHooksJS_SetContextDebugHooks
Memory usage
JS_GetObjectTotalSizeJS_GetFunctionTotalSizeJS_GetScriptTotalSize
System objects
JS_IsSystemObjectJS_NewSystemObject
Profiling
These functions can be used to profile a SpiderMonkey application using the Mac profiler, Shark. See Profiling JavaScript with Shark.
JS_ConnectSharkJS_DisconnectSharkJS_StartChudRemoteJS_StopChudRemote
The following JSNative functions can be used to expose the above four APIs to scripts.
js_ConnectSharkjs_DisconnectSharkjs_StartSharkjs_StopShark