Spidermonkey JS debugging

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

Post Posted October 9th, 2016, 2:24 pm


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.

Return to Mozilla Development

Who is online

Users browsing this forum: No registered users and 1 guest