Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show console.log in Xcode - Cordova App

My Problem is, that when I'm debugging my cordova-Android-App, I can easily do it with remote debugging in chrome and see my console.log(s) from the beginning. But how can I see that with the IOS-cordova-Apps?

I tried to see it with safari->developer->emulator. After a while I can see the console.log(s). But I really need to see the first console.log(s) and these arent listed there.

Thanks for your Help!

like image 267
Sebi B Avatar asked Mar 16 '16 12:03

Sebi B


People also ask

How do I see console in Xcode?

Go to Xcode → Preferences → Debugging → On Start → "Show Console".

How do I view logs in Xcode?

In the Xcode menu hit Run - Console. This is where NSLog / print / printf etc statements output. The key command is Command + Shift + R.

Is there a console in Xcode?

Here is small tip for Xcode developers. To show/hide the Console click the icon Show/Hide the console in the lower right corner. It's the last icon on the lower right side of the panel.


1 Answers

Try this plugin: https://github.com/apache/cordova-plugin-console

It should print the log in the xcode console then

like image 142
user2529173 Avatar answered Sep 17 '22 17:09

user2529173