mozilla

Compare Revisions

JSDBGAPI Reference

Change Revisions

Revision 139953:

Revision 139953 by Jorend on

Revision 139954:

Revision 139954 by madsdyd on

Title:
JSDBGAPI Reference
JSDBGAPI Reference
Slug:
JSDBGAPI_Reference
JSDBGAPI_Reference
Tags:
JavaScript, SpiderMonkey, JSDBGAPI_Reference
JavaScript, SpiderMonkey, JSDBGAPI_Reference
Content:

Revision 139953
Revision 139954
nn8       
9    </p>
10    <p>
n12      See the implementation of the <tt>trap, untrap, watch, unwan15      See the implementation of the <code>trap, untrap, watch, un
>tch, line2pc</tt>, and <tt>pc2line</tt> functions in {{ Source("j>watch, line2pc</code>, and <code>pc2line</code> functions in {{ S
>s/src/js.cpp") }}. Also the (scant) comments in {{ Source("js/src>ource("js/src/shell/js.cpp") }}. Also the (scant) comments in {{ 
>/jsdbgapi.h") }}.>Source("js/src/jsdbgapi.h") }}.
n14    <h3 name="Breakpoints">n17    <h3 id="Breakpoints" name="Breakpoints">
n19        <code><a href="en/JS_SetTrap">JS_SetTrap</a></code>n22        <code><a href="/en/JS_SetTrap" title="en/JS_SetTrap">JS_S
 >etTrap</a></code>
20      </li>
21      <li>23      </li>
22        <code><a href="en/JS_GetTrapOpcode">JS_GetTrapOpcode</a><
>/code> 
23      </li>24      <li>
25        <code><a href="/en/JS_GetTrapOpcode" title="en/JS_GetTrap
 >Opcode">JS_GetTrapOpcode</a></code>
24      <li>26      </li>
25        <code><a href="en/JS_ClearTrap">JS_ClearTrap</a></code>
26      </li>27      <li>
28        <code><a href="/en/JS_ClearTrap" title="en/JS_ClearTrap">
 >JS_ClearTrap</a></code>
27      <li>29      </li>
28        <code><a href="en/JS_ClearScriptTraps">JS_ClearScriptTrap
>s</a></code> 
29      </li>30      <li>
31        <code><a href="/en/JS_ClearScriptTraps" title="en/JS_Clea
 >rScriptTraps">JS_ClearScriptTraps</a></code>
30      <li>32      </li>
31        <code><a href="en/JS_ClearAllTraps">JS_ClearAllTraps</a><
>/code> 
32      </li>33      <li>
34        <code><a href="/en/JS_ClearAllTraps" title="en/JS_ClearAl
 >lTraps">JS_ClearAllTraps</a></code>
33      <li>35      </li>
34        <code><a href="en/JS_HandleTrap">JS_HandleTrap</a></code>
35      </li>36      <li>
37        <code><a href="/en/JS_HandleTrap" title="en/JS_HandleTrap
 >">JS_HandleTrap</a></code>
36      <li>38      </li>
37        <code><a href="en/JS_SetInterrupt">JS_SetInterrupt</a></c
>ode> 
38      </li>39      <li>
40        <code><a href="/en/JS_SetInterrupt" title="en/JS_SetInter
 >rupt">JS_SetInterrupt</a></code>
39      <li>41      </li>
40        <code><a href="en/JS_ClearInterrupt">JS_ClearInterrupt</a
>></code> 
41      </li>42      <li>
43        <code><a href="/en/JS_ClearInterrupt" title="en/JS_ClearI
 >nterrupt">JS_ClearInterrupt</a></code>
42    </ul>44      </li>
45    </ul>
43    <h3 name="Watchpoints">46    <h3 id="Watchpoints" name="Watchpoints">
n48        <code><a href="en/JS_SetWatchPoint">JS_SetWatchPoint</a><n51        <code><a href="/en/JS_SetWatchPoint" title="en/JS_SetWatc
>/code>>hPoint">JS_SetWatchPoint</a></code>
49      </li>
50      <li>52      </li>
51        <code><a href="en/JS_ClearWatchPoint">JS_ClearWatchPoint<
>/a></code> 
52      </li>53      <li>
54        <code><a href="/en/JS_ClearWatchPoint" title="en/JS_Clear
 >WatchPoint">JS_ClearWatchPoint</a></code>
53      <li>55      </li>
54        <code><a href="en/JS_ClearWatchPointsForObject">JS_ClearW
>atchPointsForObject</a></code> 
55      </li>56      <li>
57        <code><a href="/en/JS_ClearWatchPointsForObject" title="e
 >n/JS_ClearWatchPointsForObject">JS_ClearWatchPointsForObject</a><
 >/code>
56      <li>58      </li>
57        <code><a href="en/JS_ClearAllWatchPoints">JS_ClearAllWatc
>hPoints</a></code> 
58      </li>59      <li>
60        <code><a href="/en/JS_ClearAllWatchPoints" title="en/JS_C
 >learAllWatchPoints">JS_ClearAllWatchPoints</a></code>
59    </ul>61      </li>
60    <h3 name="Inspecting_the_stack">62    </ul>
63    <h3 id="Inspecting_the_stack" name="Inspecting_the_stack">
n65        <code><a href="en/JS_PCToLineNumber">JS_PCToLineNumber</an68        <code><a href="/en/JS_PCToLineNumber" title="en/JS_PCToLi
>></code>>neNumber">JS_PCToLineNumber</a></code>
66      </li>
67      <li>69      </li>
68        <code><a href="en/JS_LineNumberToPC">JS_LineNumberToPC</a
>></code> 
69      </li>70      <li>
71        <code><a href="/en/JS_LineNumberToPC" title="en/JS_LineNu
 >mberToPC">JS_LineNumberToPC</a></code>
70      <li>72      </li>
71        <code><a href="en/JS_GetFunctionScript">JS_GetFunctionScr
>ipt</a></code> 
72      </li>73      <li>
74        <code><a href="/en/JS_GetFunctionScript" title="en/JS_Get
 >FunctionScript">JS_GetFunctionScript</a></code>
73      <li>75      </li>
74        <code><a href="en/JS_GetFunctionNative">JS_GetFunctionNat
>ive</a></code> 
75      </li>76      <li>
77        <code><a href="/en/JS_GetFunctionNative" title="en/JS_Get
 >FunctionNative">JS_GetFunctionNative</a></code>
76      <li>78      </li>
77        <code><a href="en/JS_GetFunctionFastNative">JS_GetFunctio
>nFastNative</a></code> 
78      </li>79      <li>
80        <code><a href="/en/JS_GetFunctionFastNative" title="en/JS
 >_GetFunctionFastNative">JS_GetFunctionFastNative</a></code>
79      <li>81      </li>
80        <code><a href="en/JS_GetScriptPrincipals">JS_GetScriptPri
>ncipals</a></code> 
81      </li>82      <li>
82    </ul>83        <code><a href="/en/JS_GetScriptPrincipals" title="en/JS_G
 >etScriptPrincipals">JS_GetScriptPrincipals</a></code>
83    <ul>
84      <li>typedef <code><a href="en/JSStackFrame">JSStackFrame</a
>></code> 
85      </li>
86      <li>84      </li>
87        <code><a href="en/JS_FrameIterator">JS_FrameIterator</a><
>/code> 
88      </li>85    </ul>
86    <ul>
87      <li>typedef <code><a href="/en/JSStackFrame" title="en/JSSt
 >ackFrame">JSStackFrame</a></code>
89      <li>88      </li>
90        <code><a href="en/JS_GetFrameScript">JS_GetFrameScript</a
>></code> 
91      </li>89      <li>
90        <code><a href="/en/JS_FrameIterator" title="en/JS_FrameIt
 >erator">JS_FrameIterator</a></code>
92      <li>91      </li>
93        <code><a href="en/JS_GetFramePC">JS_GetFramePC</a></code>
94      </li>92      <li>
93        <code><a href="/en/JS_GetFrameScript" title="en/JS_GetFra
 >meScript">JS_GetFrameScript</a></code>
95      <li>94      </li>
96        <code><a href="en/JS_GetScriptedCaller">JS_GetScriptedCal
>ler</a></code> 
97      </li>95      <li>
96        <code><a href="/en/JS_GetFramePC" title="en/JS_GetFramePC
 >">JS_GetFramePC</a></code>
98      <li>97      </li>
99        <code><a href="en/JS_StackFramePrincipals">JS_StackFrameP
>rincipals</a></code> 
100      </li>98      <li>
99        <code><a href="/en/JS_GetScriptedCaller" title="en/JS_Get
 >ScriptedCaller">JS_GetScriptedCaller</a></code>
101      <li>100      </li>
102        <code><a href="en/JS_EvalFramePrincipals">JS_EvalFramePri
>ncipals</a></code> 
103      </li>101      <li>
102        <code><a href="/en/JS_StackFramePrincipals" title="en/JS_
 >StackFramePrincipals">JS_StackFramePrincipals</a></code>
104      <li>103      </li>
105        <code><a href="en/JS_GetFrameAnnotation">JS_GetFrameAnnot
>ation</a></code> 
106      </li>104      <li>
105        <code><a href="/en/JS_EvalFramePrincipals" title="en/JS_E
 >valFramePrincipals">JS_EvalFramePrincipals</a></code>
107      <li>106      </li>
108        <code><a href="en/JS_SetFrameAnnotation">JS_SetFrameAnnot
>ation</a></code> 
109      </li>107      <li>
108        <code><a href="/en/JS_GetFrameAnnotation" title="en/JS_Ge
 >tFrameAnnotation">JS_GetFrameAnnotation</a></code>
110      <li>109      </li>
111        <code><a href="en/JS_GetFramePrincipalArray">JS_GetFrameP
>rincipalArray</a></code> 
112      </li>110      <li>
111        <code><a href="/en/JS_SetFrameAnnotation" title="en/JS_Se
 >tFrameAnnotation">JS_SetFrameAnnotation</a></code>
113      <li>112      </li>
114        <code><a href="en/JS_IsNativeFrame">JS_IsNativeFrame</a><
>/code> 
115      </li>113      <li>
114        <code><a href="/en/JS_GetFramePrincipalArray" title="en/J
 >S_GetFramePrincipalArray">JS_GetFramePrincipalArray</a></code>
116      <li>115      </li>
117        <code><a href="en/JS_GetFrameObject">JS_GetFrameObject</a
>></code> {{ Deprecated_inline() }} 
118      </li>116      <li>
117        <code><a href="/en/JS_IsNativeFrame" title="en/JS_IsNativ
 >eFrame">JS_IsNativeFrame</a></code>
119      <li>118      </li>
120        <code><a href="en/JS_GetFrameScopeChain">JS_GetFrameScope
>Chain</a></code> 
121      </li>119      <li>
120        <code><a href="/en/JS_GetFrameObject" title="en/JS_GetFra
 >meObject">JS_GetFrameObject</a></code> {{ Deprecated_inline() }}
122      <li>121      </li>
123        <code><a href="en/JS_GetFrameCallObject">JS_GetFrameCallO
>bject</a></code> 
124      </li>122      <li>
123        <code><a href="/en/JS_GetFrameScopeChain" title="en/JS_Ge
 >tFrameScopeChain">JS_GetFrameScopeChain</a></code>
125      <li>124      </li>
126        <code><a href="en/JS_GetFrameThis">JS_GetFrameThis</a></c
>ode> 
127      </li>125      <li>
126        <code><a href="/en/JS_GetFrameCallObject" title="en/JS_Ge
 >tFrameCallObject">JS_GetFrameCallObject</a></code>
128      <li>127      </li>
129        <code><a href="en/JS_GetFrameFunction">JS_GetFrameFunctio
>n</a></code> 
130      </li>128      <li>
129        <code><a href="/en/JS_GetFrameThis" title="en/JS_GetFrame
 >This">JS_GetFrameThis</a></code>
131      <li>130      </li>
132        <code><a href="en/JS_GetFrameFunctionObject">JS_GetFrameF
>unctionObject</a></code> 
133      </li>131      <li>
132        <code><a href="/en/JS_GetFrameFunction" title="en/JS_GetF
 >rameFunction">JS_GetFrameFunction</a></code>
134      <li>133      </li>
135        <code><a href="en/JS_IsConstructorFrame">JS_IsConstructor
>Frame</a></code> 
136      </li>134      <li>
135        <code><a href="/en/JS_GetFrameFunctionObject" title="en/J
 >S_GetFrameFunctionObject">JS_GetFrameFunctionObject</a></code>
137      <li>136      </li>
138        <code><a href="en/JS_IsDebuggerFrame">JS_IsDebuggerFrame<
>/a></code> 
139      </li>137      <li>
138        <code><a href="/en/JS_IsConstructorFrame" title="en/JS_Is
 >ConstructorFrame">JS_IsConstructorFrame</a></code>
140      <li>139      </li>
141        <code><a href="en/JS_GetFrameReturnValue">JS_GetFrameRetu
>rnValue</a></code> 
142      </li>140      <li>
141        <code><a href="/en/JS_IsDebuggerFrame" title="en/JS_IsDeb
 >uggerFrame">JS_IsDebuggerFrame</a></code>
143      <li>142      </li>
144        <code><a href="en/JS_SetFrameReturnValue">JS_SetFrameRetu
>rnValue</a></code> 
145      </li>143      <li>
144        <code><a href="/en/JS_GetFrameReturnValue" title="en/JS_G
 >etFrameReturnValue">JS_GetFrameReturnValue</a></code>
146      <li>145      </li>
147        <code><a href="en/JS_GetFrameCalleeObject">JS_GetFrameCal
>leeObject</a></code> 
148      </li>146      <li>
149    </ul>147        <code><a href="/en/JS_SetFrameReturnValue" title="en/JS_S
 >etFrameReturnValue">JS_SetFrameReturnValue</a></code>
150    <ul>
151      <li>148      </li>
152        <code><a href="en/JS_GetScriptFilename">JS_GetScriptFilen
>ame</a></code> 
153      </li>149      <li>
150        <code><a href="/en/JS_GetFrameCalleeObject" title="en/JS_
 >GetFrameCalleeObject">JS_GetFrameCalleeObject</a></code>
154      <li>151      </li>
155        <code><a href="en/JS_GetScriptBaseLineNumber">JS_GetScrip152    </ul>
>tBaseLineNumber</a></code> 
153    <ul>
156      </li>154      <li>
155        <code><a href="/en/JS_GetScriptFilename" title="en/JS_Get
 >ScriptFilename">JS_GetScriptFilename</a></code>
157      <li>156      </li>
158        <code><a href="en/JS_GetScriptLineExtent">JS_GetScriptLin
>eExtent</a></code> 
159      </li>157      <li>
158        <code><a href="/en/JS_GetScriptBaseLineNumber" title="en/
 >JS_GetScriptBaseLineNumber">JS_GetScriptBaseLineNumber</a></code>
160      <li>159      </li>
161        <code><a href="en/JS_GetScriptVersion">JS_GetScriptVersio
>n</a></code> 
162      </li>160      <li>
163    </ul>161        <code><a href="/en/JS_GetScriptLineExtent" title="en/JS_G
 >etScriptLineExtent">JS_GetScriptLineExtent</a></code>
164    <ul>
165      <li>162      </li>
166        <code><a href="en/JS_GetTopScriptFilenameFlags">JS_GetTop
>ScriptFilenameFlags</a></code> 
167      </li>163      <li>
164        <code><a href="/en/JS_GetScriptVersion" title="en/JS_GetS
 >criptVersion">JS_GetScriptVersion</a></code>
168      <li>165      </li>
169        <code><a href="en/JS_GetScriptFilenameFlags">JS_GetScript166    </ul>
>FilenameFlags</a></code> 
167    <ul>
170      </li>168      <li>
169        <code><a href="/en/JS_GetTopScriptFilenameFlags" title="e
 >n/JS_GetTopScriptFilenameFlags">JS_GetTopScriptFilenameFlags</a><
 >/code>
171      <li>170      </li>
172        <code><a href="en/JS_FlagScriptFilenamePrefix">JS_FlagScr
>iptFilenamePrefix</a></code> 
173      </li>171      <li>
174    </ul>172        <code><a href="/en/JS_GetScriptFilenameFlags" title="en/J
 >S_GetScriptFilenameFlags">JS_GetScriptFilenameFlags</a></code>
175    <ul>
176      <li>173      </li>
177        <code><a href="en/JSFILENAME_NULL">JSFILENAME_NULL</a></c
>ode> 
178      </li>174      <li>
175        <code><a href="/en/JS_FlagScriptFilenamePrefix" title="en
 >/JS_FlagScriptFilenamePrefix">JS_FlagScriptFilenamePrefix</a></co
 >de>
179      <li>176      </li>
180        <code><a href="en/JSFILENAME_SYSTEM">JSFILENAME_SYSTEM</a177    </ul>
>></code> 
178    <ul>
181      </li>179      <li>
180        <code><a href="/en/JSFILENAME_NULL" title="en/JSFILENAME_
 >NULL">JSFILENAME_NULL</a></code>
182      <li>181      </li>
183        <code><a href="en/JSFILENAME_PROTECTED">JSFILENAME_PROTEC
>TED</a></code> 
184      </li>182      <li>
183        <code><a href="/en/JSFILENAME_SYSTEM" title="en/JSFILENAM
 >E_SYSTEM">JSFILENAME_SYSTEM</a></code>
185    </ul>184      </li>
186    <h3 name="Evaluating_debug_code">185      <li>
186        <code><a href="/en/JSFILENAME_PROTECTED" title="en/JSFILE
 >NAME_PROTECTED">JSFILENAME_PROTECTED</a></code>
187      </li>
188    </ul>
189    <h3 id="Evaluating_debug_code" name="Evaluating_debug_code">
n191        <code><a href="en/JS_EvaluateInStackFrame">JS_EvaluateInSn194        <code><a href="/en/JS_EvaluateInStackFrame" title="en/JS_
>tackFrame</a></code>>EvaluateInStackFrame">JS_EvaluateInStackFrame</a></code>
192      </li>
193    </ul>195      </li>
194    <h3 name="Examining_object_properties">196    </ul>
197    <h3 id="Examining_object_properties" name="Examining_object_p
 >roperties">
n198      <li>typedef <code><a href="en/JSPropertyDesc">JSPropertyDesn201      <li>typedef <code><a href="/en/JSPropertyDesc" title="en/JS
>c</a></code>>PropertyDesc">JSPropertyDesc</a></code>
199      </li>
200    </ul>
201    <ul>
202      <li>202      </li>
203        <code><a href="en/JSPD_ENUMERATE">JSPD_ENUMERATE</a></cod203    </ul>
>e> 
204    <ul>
204      </li>205      <li>
206        <code><a href="/en/JSPD_ENUMERATE" title="en/JSPD_ENUMERA
 >TE">JSPD_ENUMERATE</a></code>
205      <li>207      </li>
206        <code><a href="en/JSPD_READONLY">JSPD_READONLY</a></code>
207      </li>208      <li>
209        <code><a href="/en/JSPD_READONLY" title="en/JSPD_READONLY
 >">JSPD_READONLY</a></code>
208      <li>210      </li>
209        <code><a href="en/JSPD_PERMANENT">JSPD_PERMANENT</a></cod
>e> 
210      </li>211      <li>
212        <code><a href="/en/JSPD_PERMANENT" title="en/JSPD_PERMANE
 >NT">JSPD_PERMANENT</a></code>
211      <li>213      </li>
212        <code><a href="en/JSPD_ALIAS">JSPD_ALIAS</a></code>
213      </li>214      <li>
215        <code><a href="/en/JSPD_ALIAS" title="en/JSPD_ALIAS">JSPD
 >_ALIAS</a></code>
214      <li>216      </li>
215        <code><a href="en/JSPD_ARGUMENT">JSPD_ARGUMENT</a></code>
216      </li>217      <li>
218        <code><a href="/en/JSPD_ARGUMENT" title="en/JSPD_ARGUMENT
 >">JSPD_ARGUMENT</a></code>
217      <li>219      </li>
218        <code><a href="en/JSPD_VARIABLE">JSPD_VARIABLE</a></code>
219      </li>220      <li>
221        <code><a href="/en/JSPD_VARIABLE" title="en/JSPD_VARIABLE
 >">JSPD_VARIABLE</a></code>
220      <li>222      </li>
221        <code><a href="en/JSPD_EXCEPTION">JSPD_EXCEPTION</a></cod
>e> 
222      </li>223      <li>
224        <code><a href="/en/JSPD_EXCEPTION" title="en/JSPD_EXCEPTI
 >ON">JSPD_EXCEPTION</a></code>
223      <li>225      </li>
224        <code><a href="en/JSPD_ERROR">JSPD_ERROR</a></code>
225      </li>226      <li>
226    </ul>227        <code><a href="/en/JSPD_ERROR" title="en/JSPD_ERROR">JSPD
 >_ERROR</a></code>
227    <ul>
228      <li>typedef <code><a href="en/JSPropertyDescArray">JSProper
>tyDescArray</a></code> 
229      </li>
230    </ul>
231    <ul>
232      <li>228      </li>
233        <code><a href="en/JS_PropertyIterator">JS_PropertyIterato
>r</a></code> 
234      </li>229    </ul>
230    <ul>
231      <li>typedef <code><a href="/en/JSPropertyDescArray" title="
 >en/JSPropertyDescArray">JSPropertyDescArray</a></code>
235      <li>232      </li>
236        <code><a href="en/JS_GetPropertyDesc">JS_GetPropertyDesc<233    </ul>
>/a></code> 
234    <ul>
237      </li>235      <li>
236        <code><a href="/en/JS_PropertyIterator" title="en/JS_Prop
 >ertyIterator">JS_PropertyIterator</a></code>
238      <li>237      </li>
239        <code><a href="en/JS_GetPropertyDescArray">JS_GetProperty
>DescArray</a></code> 
240      </li>238      <li>
239        <code><a href="/en/JS_GetPropertyDesc" title="en/JS_GetPr
 >opertyDesc">JS_GetPropertyDesc</a></code>
241      <li>240      </li>
242        <code><a href="en/JS_PutPropertyDescArray">JS_PutProperty
>DescArray</a></code> 
243      </li>241      <li>
242        <code><a href="/en/JS_GetPropertyDescArray" title="en/JS_
 >GetPropertyDescArray">JS_GetPropertyDescArray</a></code>
244    </ul>243      </li>
244      <li>
245        <code><a href="/en/JS_PutPropertyDescArray" title="en/JS_
 >PutPropertyDescArray">JS_PutPropertyDescArray</a></code>
246      </li>
247    </ul>
245    <h3 name="Hooks">248    <h3 id="Hooks" name="Hooks">
n250        <code><a href="en/JS_SetDebuggerHandler">JS_SetDebuggerHan253        <code><a href="/en/JS_SetDebuggerHandler" title="en/JS_Se
>ndler</a></code>>tDebuggerHandler">JS_SetDebuggerHandler</a></code>
251      </li>
252      <li>254      </li>
253        <code><a href="en/JS_SetSourceHandler">JS_SetSourceHandle
>r</a></code> 
254      </li>255      <li>
256        <code><a href="/en/JS_SetSourceHandler" title="en/JS_SetS
 >ourceHandler">JS_SetSourceHandler</a></code>
255      <li>257      </li>
256        <code><a href="en/JS_SetExecuteHook">JS_SetExecuteHook</a
>></code> 
257      </li>258      <li>
259        <code><a href="/en/JS_SetExecuteHook" title="en/JS_SetExe
 >cuteHook">JS_SetExecuteHook</a></code>
258      <li>260      </li>
259        <code><a href="en/JS_SetCallHook">JS_SetCallHook</a></cod
>e> 
260      </li>261      <li>
262        <code><a href="/en/JS_SetCallHook" title="en/JS_SetCallHo
 >ok">JS_SetCallHook</a></code>
261      <li>263      </li>
262        <code><a href="en/JS_SetObjectHook">JS_SetObjectHook</a><
>/code> 
263      </li>264      <li>
265        <code><a href="/en/JS_SetObjectHook" title="en/JS_SetObje
 >ctHook">JS_SetObjectHook</a></code>
264      <li>266      </li>
265        <code><a href="en/JS_SetThrowHook">JS_SetThrowHook</a></c
>ode> 
266      </li>267      <li>
268        <code><a href="/en/JS_SetThrowHook" title="en/JS_SetThrow
 >Hook">JS_SetThrowHook</a></code>
267      <li>269      </li>
268        <code><a href="en/JS_SetDebugErrorHook">JS_SetDebugErrorH
>ook</a></code> 
269      </li>270      <li>
271        <code><a href="/en/JS_SetDebugErrorHook" title="en/JS_Set
 >DebugErrorHook">JS_SetDebugErrorHook</a></code>
270      <li>272      </li>
271        <code><a href="en/JS_SetNewScriptHook">JS_SetNewScriptHoo
>k</a></code> 
272      </li>273      <li>
274        <code><a href="/en/JS_SetNewScriptHook" title="en/JS_SetN
 >ewScriptHook">JS_SetNewScriptHook</a></code>
273      <li>275      </li>
274        <code><a href="en/JS_SetDestroyScriptHook">JS_SetDestroyS
>criptHook</a></code> 
275      </li>276      <li>
276    </ul>277        <code><a href="/en/JS_SetDestroyScriptHook" title="en/JS_
 >SetDestroyScriptHook">JS_SetDestroyScriptHook</a></code>
277    <ul>
278      <li>278      </li>
279        <code><a href="en/JS_GetGlobalDebugHooks">JS_GetGlobalDeb279    </ul>
>ugHooks</a></code> 
280    <ul>
280      </li>281      <li>
282        <code><a href="/en/JS_GetGlobalDebugHooks" title="en/JS_G
 >etGlobalDebugHooks">JS_GetGlobalDebugHooks</a></code>
281      <li>283      </li>
282        <code><a href="en/JS_SetContextDebugHooks">JS_SetContextD
>ebugHooks</a></code> 
283      </li>284      <li>
285        <code><a href="/en/JS_SetContextDebugHooks" title="en/JS_
 >SetContextDebugHooks">JS_SetContextDebugHooks</a></code>
284    </ul>286      </li>
287    </ul>
285    <h3 name="Memory_usage">288    <h3 id="Memory_usage" name="Memory_usage">
n290        <code><a href="en/JS_GetObjectTotalSize">JS_GetObjectTotan293        <code><a href="/en/JS_GetObjectTotalSize" title="en/JS_Ge
>lSize</a></code>>tObjectTotalSize">JS_GetObjectTotalSize</a></code>
291      </li>
292      <li>294      </li>
293        <code><a href="en/JS_GetFunctionTotalSize">JS_GetFunction
>TotalSize</a></code> 
294      </li>295      <li>
296        <code><a href="/en/JS_GetFunctionTotalSize" title="en/JS_
 >GetFunctionTotalSize">JS_GetFunctionTotalSize</a></code>
295      <li>297      </li>
296        <code><a href="en/JS_GetScriptTotalSize">JS_GetScriptTota
>lSize</a></code> 
297      </li>298      <li>
299        <code><a href="/en/JS_GetScriptTotalSize" title="en/JS_Ge
 >tScriptTotalSize">JS_GetScriptTotalSize</a></code>
298    </ul>300      </li>
301    </ul>
299    <h3 name="System_objects">302    <h3 id="System_objects" name="System_objects">
n304        <code><a href="en/JS_IsSystemObject">JS_IsSystemObject</an307        <code><a href="/en/JS_IsSystemObject" title="en/JS_IsSyst
>></code>>emObject">JS_IsSystemObject</a></code>
305      </li>
306      <li>308      </li>
307        <code><a href="en/JS_NewSystemObject">JS_NewSystemObject<
>/a></code> 
308      </li>309      <li>
310        <code><a href="/en/JS_NewSystemObject" title="en/JS_NewSy
 >stemObject">JS_NewSystemObject</a></code>
309    </ul>311      </li>
312    </ul>
310    <h3 name="Profiling">313    <h3 id="Profiling" name="Profiling">
t314      These functions can be used to profile a SpiderMonkey applit317      These functions can be used to profile a SpiderMonkey appli
>cation using the Mac profiler, Shark. See <a href="en/Profiling_J>cation using the Mac profiler, Shark. See <a href="/en/Profiling_
>avaScript_with_Shark">Profiling JavaScript with Shark</a>.>JavaScript_with_Shark" title="en/Profiling_JavaScript_with_Shark"
 >>Profiling JavaScript with Shark</a>.
315    </p>
316    <ul>318    </p>
317      <li>319    <ul>
318        <code><a href="en/JS_ConnectShark">JS_ConnectShark</a></c
>ode> 
319      </li>320      <li>
321        <code><a href="/en/JS_ConnectShark" title="en/JS_ConnectS
 >hark">JS_ConnectShark</a></code>
320      <li>322      </li>
321        <code><a href="en/JS_DisconnectShark">JS_DisconnectShark<
>/a></code> 
322      </li>323      <li>
324        <code><a href="/en/JS_DisconnectShark" title="en/JS_Disco
 >nnectShark">JS_DisconnectShark</a></code>
323      <li>325      </li>
324        <code><a href="en/JS_StartChudRemote">JS_StartChudRemote<
>/a></code> 
325      </li>326      <li>
327        <code><a href="/en/JS_StartChudRemote" title="en/JS_Start
 >ChudRemote">JS_StartChudRemote</a></code>
326      <li>328      </li>
327        <code><a href="en/JS_StopChudRemote">JS_StopChudRemote</a
>></code> 
328      </li>329      <li>
329    </ul>330        <code><a href="/en/JS_StopChudRemote" title="en/JS_StopCh
 >udRemote">JS_StopChudRemote</a></code>
330    <p>
331      The following <code><a href="en/JSNative">JSNative</a></cod
>e> functions can be used to expose the above four APIs to scripts 
>. 
332    </p>
333    <ul>
334      <li>331      </li>
335        <code><a href="en/Js_ConnectShark">js_ConnectShark</a></c332    </ul>
>ode> 
333    <p>
334      The following <code><a href="/en/SpiderMonkey/JSAPI_Referen
 >ce/JSNative" title="en/SpiderMonkey/JSAPI_Reference/JSNative">JSN
 >ative</a></code> functions can be used to expose the above four A
 >PIs to scripts.
335    </p>
336    <ul>
336      </li>337      <li>
338        <code><a href="/en/Js_ConnectShark" title="en/Js_ConnectS
 >hark">js_ConnectShark</a></code>
337      <li>339      </li>
338        <code><a href="en/Js_DisconnectShark">js_DisconnectShark<
>/a></code> 
339      </li>340      <li>
341        <code><a href="/en/Js_DisconnectShark" title="en/Js_Disco
 >nnectShark">js_DisconnectShark</a></code>
340      <li>342      </li>
341        <code><a href="en/Js_StartShark">js_StartShark</a></code>
342      </li>343      <li>
344        <code><a href="/en/Js_StartShark" title="en/Js_StartShark
 >">js_StartShark</a></code>
343      <li>345      </li>
344        <code><a href="en/Js_StopShark">js_StopShark</a></code>
345      </li>346      <li>
347        <code><a href="/en/Js_StopShark" title="en/Js_StopShark">
 >js_StopShark</a></code>
348      </li>
349    </ul>
350    <p>
346    </ul>{{ languages( { "ja": "ja/JSDBGAPI_Reference" } ) }}351      {{ languages( { "ja": "ja/JSDBGAPI_Reference" } ) }}
352    </p>

Back to History