Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing Console.log in ios simulator

Please excuse my silliness. I feel as this should be a simple problem. I am using phonegap to develop in IOS. I am wondering how come console.debug does not show up in the xcode console. How can I view any javascript error or exception in xcode console or anywhere? I am running on 4.3 IOS IPAD simulator. Thanks.

like image 952
dchhetri Avatar asked Oct 08 '11 02:10

dchhetri


People also ask

How do I use the console log in iOS simulator?

To open Console from the iOS simulator, from the menu bar, select Debug > Open System Log .... To open Console from the Applications folder: Click Applications.

How do you inspect element on iPhone simulator?

Turn the web inspector on in iOS Safari (in iOS Simulator) settings —> Safari —> Advance —> Turn on web inspector. Open your webpage or web app in the iOS Simulator. Now it is just like using the web inspector in Safari but it is in the iOS Simulator.


1 Answers

You can watch the console.log with a safari-browser. Open the ios-simulator or connect the ipad by usb. Open safari and take a look in the menu "developer". Choose your web-site and the web-inspector will open.

more info here:

https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/DebuggingSafarioniPhoneContent/DebuggingSafarioniPhoneContent.html

like image 181
fischel Avatar answered Nov 02 '22 07:11

fischel