I want to debug my PhoneGap app in Xcode, but its Console can not show javascript errors.
Put this in the beginning of your index.html