Console.log statements in XCode


#1

I could’ve sworn that pre-RC releases, you could see console.log debug statements in XCode when running on device.

I have cordova-plugin-console installed.

Is there something in ionic-app-script / webpack / rollup that strips away the console.log statements when doing ionic build ios --device?

Any way to get them back?


#2

Turns out I needed to wrap some ionic-storage calls (using SQLite) in platform.ready(). Somehow, the premature calls (before the platform was ready) broke future communication with cordova (in this case cordova-plugin-console, responsible for proxying console.log to XCode).