Debug ionic view


#1

Hi all, I am new in this forum, so my question may have been asked before.
However I have been googling around and have not been able to find a working answer.

I am developing an app using sqlite to store some basic data used to identify the user of the app, and connecting to an external webservice which is operational.

On my laptop it works all fine: ionic lab and ionic serve give me a lot of debug info.

However when I try the app in the Ionic DevApp, or in Ionic View, it performs not as I want it, and it comes mainly because sqlite is not supported, and it seems that the connection to the webservice cannot be made.

The webservice is based on C# and integrated into the ionic app via swagger.

Is there any debug tool available where I can test my app and have some console info or other feedback?

I know of the “remote devices” in de Google Developers part, but that does not help me much.

Looking forward to your reactions!

Henk Jelt Hoving


#2

Try it in emulator or in real device.
After connecting a device or running emulator
in chrome type:
chrome://inspect
it will show the device connected(make sure your mobile’s developer option is on and usb debugging is on)
after that run in cli:

ionic cordova run android 

go on and inspect you’ll get the console.


#3

Yep, as @uddyvky said: Test on emulator/simulator or a real device and remove debug:

Follow these instructions here to debug the problem in Safari dev tools:
https://ionic.zone/debug/remote-debug-your-app#ios
Follow these instructions here to debug the problem in Chrome dev tools:
https://ionic.zone/debug/remote-debug-your-app#android


#4

Thanks.

I’ll give it a try.

In the meantime I have been able to deploy the app to an Android device and it runs perfectly!


#5

Good going. All the best!