Testing cordova functionalities

Cordova is great however, testing cordova is a pain. If I run cordova run ios --device it takes around 5-10 minutes to see the live version. Also, there are no debug messages, so most of the time we’re guessing the outputs or what could have gone wrong while testing cordova application.
What strategies are you using for debuggin Cordova functionalities in your Ionic app.

Then you’re testing only half. If you run your cordova application with this command, you can debug your app just as if you were debugging it into your browser. For logs you can just open up safari (make sure you can inspect the webview by enabling it in your iPhone/iPad) and then inspect the Device. Works the same as chrome dev tools. With all your errors in place. If you want to see cordova plugin specific logs, you can run it through Xcode as well. This will give you all the plugin logs (startup times, what’s blocking and what not) in your terminal in Xcode.

Thanks for this incredible suggestion, it seems to be working :slight_smile:

You obviously already found out how, but here is my default reply to cases like this:

Did you remote debug the problem on the device already?
Follow these instructions here to debug the problem in Safari dev tools:
Follow these instructions here to debug the problem in Chrome dev tools: