cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 489 forks source link

How to debug the spidermonkey javascript engine? #1818

Closed lingnand closed 8 years ago

lingnand commented 8 years ago

My main.js runs fine in all web browsers (Chrome, Safari, Firefox), but hangs in any native build. My suspicion is that the engine runs into a deadlock somewhere (maybe due to the extensions cocos2d has added on top of spidermonkey), but there is no obvious way to debug.

Pausing the program in XCode only shows me the machine instructions - is it because the cocos2d-frameworks are not built with debug support?

Any help is greatly appreciated. Thanks.

lingnand commented 8 years ago

Okay, solved it myself.