iOS - no console output

Hi All,

No matter what I do, I can’t seem to get iOS to output anything to the console anymore. I used to get all console.log() calls logging in lldb once upon a time. Running in the browser is fine (with ionic serve), but with either ionic emulate ios or ionic run ios, I don’t get any output. Even when I specify the -c or -s flags, nothing is output to lldb. Using the -l flag leads to a white screen on both the iOS emulator and the iPhone.

This is particularly frustrating to me right now as I’m having issues getting LocalForage to work on iOS - it works fine in the browser, but either doesn’t load or save properly on the phone, and I can’t debug at all :frowning:

Running CLI v1.3.3, iOS 8.1.3 on my iPhone, and iOS simulator 8.1.

Any help or insight would be great!

Cheers,

Sami

Assuming you have the console plugin enabled, is a “project-name”/platforms/ios/cordova/console.log file being created when you emulate?

While the /platforms/ios/cordova/console.log files were being generated, they weren’t logging any of my console.log() calls.

I re-installed the console and device plugins, removed ios as a platform and reinstalled ios as a platform, and then my console logs appeared again. So I think somewhere along the line either my plugins disappeared or became corrupt…