Reputation: 2200
We can build Cordova application from Meteor version 0.9.2.
How can we debug it? Client & server code?
Upvotes: 1
Views: 1749
Reputation: 2696
The Meteor site has all of the information on this: https://guide.meteor.com/mobile.html
Debugging Android in Chrome:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/#remote-debugging-on-android-with-chrome-devtools
The one thing however that was not mentioned is how to view the "client side native logs" -- to do this for Android, just run this command in terminal after running meteor run android-device
:
adb logcat
See the Meteor docs for iOS debugging
Upvotes: 0
Reputation: 6676
You can debug the server-part in the same way as you would do it with a regular node app: https://www.youtube.com/watch?v=VrmdbEvoAPg
Refer to the docs: https://github.com/phonegap/phonegap/wiki/Debugging-in-PhoneGap
Upvotes: 0
Reputation: 666
Came here because I was looking for a similar solution. I found out there actually is a way.
It depends on your device but if you have Chrome installed on an Android and on your computer the steps are the same as you would debug a mobile website on your device.
For iOS there is a similar way with Safari. http://blog.differential.com/debug-a-meteor-cordova-app/
For an extended guide on how to debug on your mobile phone: https://developer.chrome.com/devtools/docs/remote-debugging
For the server-code you can use the terminal like you normally would.
Upvotes: 5