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

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

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

10条回答
  •  一个人的身影
    2020-12-04 15:53

    debug.log will send messages to the XCode console in Phonegap (allowing you to either log the result of an exception or do some debugging), however, you are correct that you have to debug other javascript errors in Safari (either on the desktop or on the iphone with Debug Console turned on). I have yet to find a Javascript error, that was caused by running on the iphone and wasn't present when debugging with the console turned on in Safari (though I know there are a few differences between the WebView and Safari on the iphone).

提交回复
热议问题