The JSDBG API is obsolete and has been removed in SpiderMonkey 35. See bugĀ 1069694.

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.