We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


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.



Inspecting the stack

Evaluating debug code

Examining object properties


Memory usage

System objects


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, Sheppy, Obana
最后编辑者: ziyunfei,