How can I debug js code using Cordova and ios simulator?
问题 I am using xcode 4.5.2 and PhoneGap (Cordova) to develop an iphone app. Looking at the Log Navigator in xcode does not show me any of the js console.log s. What must I do to be able to see these log outputs? 回答1: This may be a little late but its quite simple. So in Safari, Go preferences -> advanced -> Show Develop menu in menu bar . Once you've that, build and run in xcode and then in safari go Develop -> iPhone Simulator -> Your App Name . It works pretty well but I can't find a way to