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).
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?