You can debug your JavaScript program running in BabylonNative for MacOS or iOS using Safari. These simple steps will show you how you can hook the Safari debugger to your JavaScriptCore Context.
Run Safari, go to the preferences:
Click the Advanced tab and enable developer options
Run your playground.
In Safari, in the develop menu, you should see your app and the JSC context.
Check everything is properly connected by setting a breakpoint in the debugger. You should see your scripts and all the details.