How to see the javascript errors of PhoneGap app in Xcode?

后端 未结 10 1235
轮回少年
轮回少年 2020-12-04 15:12

I want to debug my PhoneGap app in Xcode, but its Console can not show javascript errors.

10条回答
  •  -上瘾入骨i
    2020-12-04 15:31

    For making javascript debugging work in Xcode I would take a look at the following.

    http://phonegap.com/2011/05/18/debugging-phonegap-javascript/
    http://www.daveoncode.com/2010/01/12/debugging-phonegap-applications-using-xcode-console/

    As as far as additional troubleshooting goes...
    To start with you could run the app in safari on you pc and utilize safari's debugger (or chrome as both are running similar rendering engines). This won't hit on the advanced logic errors and many of your api issues but it at the very least should help with troubleshooting many issues (basic javascript, HTML5 etc....).

提交回复
热议问题