Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JSDBGAPI 参考

 


Obviously this stuff is almost entirely undocumented.

See the implementation of the trap, untrap, watch, unwatch, line2pc, and pc2line functions in js/src/shell/js.cpp. Also the (scant) comments in js/src/jsdbgapi.h.

Breakpoints

Watchpoints

Inspecting the stack

Evaluating debug code

Examining object properties

Hooks

Memory usage

System objects

Profiling

These functions can be used to profile a SpiderMonkey application using the Mac profiler, Shark. See Profiling JavaScript with Shark.

The following JSNative functions can be used to expose the above four APIs to scripts.

文档标签和贡献者

 最后编辑者: ziyunfei,