Spidermonkey JS debugging

Discuss building things with or for the Mozilla Platform.
Post Reply
phlipper1988
New Member
Posts: 1
Joined: October 9th, 2016, 2:10 pm

Spidermonkey JS debugging

Post by phlipper1988 »

Hello,

at the moment I am trying to get Spidermonkey working inside an application (for now it's just Qt window with a text editor which contains a script to be executed). I'm using Spidermonkey 38.2.1 on Ubuntu.
Compiling, linking, and also executing JS scripts works just fine (sticking to this guide).

But I cannot figure out how to debug the Javascript code at all.
There is some mentioning of a "jsdbgapi.h" which seems no longer to be available.

I just get a boolean value from JS::Evaluate if the script execution went ok but nothing more.
How can I get some sort of error/status at which point the execution went wrong?
Is there a way to set breakpoints and get used variables/object of the current context when a breakpoint gets hit?

Thank you.
Post Reply