--- title: JSDBGAPI Reference slug: Mozilla/Projects/SpiderMonkey/JSDBGAPI_Reference tags: - JSDBGAPI_Reference - JavaScript - SpiderMonkey ---
見てのとおり、ほとんどすべての項目がドキュメント化されていません。
<tt>trap, untrap, watch, unwatch, line2pc</tt> および <tt>pc2line</tt> 関数の実装は {{ Source("js/src/js.c") }} をご覧ください。{{ Source("js/src/jsdbgapi.h") }} にも (わずかに) コメントがあります。
{{ 英語版章題("Breakpoints") }}
JS_SetTrap
JS_GetTrapOpcode
JS_ClearTrap
JS_ClearScriptTraps
JS_ClearAllTraps
JS_HandleTrap
JS_SetInterrupt
JS_ClearInterrupt
{{ 英語版章題("Watchpoints") }}
{{ 英語版章題("Inspecting the stack") }}
JS_PCToLineNumber
JS_LineNumberToPC
JS_GetFunctionScript
JS_GetFunctionNative
JS_GetFunctionFastNative
JS_GetScriptPrincipals
JSStackFrame
JS_FrameIterator
JS_GetFrameScript
JS_GetFramePC
JS_GetScriptedCaller
JS_StackFramePrincipals
JS_EvalFramePrincipals
JS_GetFrameAnnotation
JS_SetFrameAnnotation
JS_GetFramePrincipalArray
JS_IsNativeFrame
JS_GetFrameObject {{ Deprecated_inline() }}
JS_GetFrameScopeChain
JS_GetFrameCallObject
JS_GetFrameThis
JS_GetFrameFunction
JS_GetFrameFunctionObject
JS_IsConstructorFrame
JS_IsDebuggerFrame
JS_GetFrameReturnValue
JS_SetFrameReturnValue
JS_GetFrameCalleeObject
{{ 英語版章題("Evaluating debug code") }}
{{ 英語版章題("Examining object properties") }}
JSPropertyDesc
JSPD_ENUMERATE
JSPD_READONLY
JSPD_PERMANENT
JSPD_ALIAS
JSPD_ARGUMENT
JSPD_VARIABLE
JSPD_EXCEPTION
JSPD_ERROR
JSPropertyDescArray
{{ 英語版章題("Hooks") }}
JS_SetDebuggerHandler
JS_SetSourceHandler
JS_SetExecuteHook
JS_SetCallHook
JS_SetObjectHook
JS_SetThrowHook
JS_SetDebugErrorHook
JS_SetNewScriptHook
JS_SetDestroyScriptHook
{{ 英語版章題("Memory usage") }}
{{ 英語版章題("System objects") }}
{{ 英語版章題("Profiling") }}
これらの関数は、Mac プロファイラである Shark を使用して SpiderMonkey アプリケーションを分析するために使用されます。Profiling JavaScript with Shark をご覧ください。
以下の JSNative 関数は、上記 4 つの API をスクリプトに晒すために使用されます。