Phonegap developers use many different hectic methods to debug their phonegap apps. All those methods are limited to the platform for which they are developing the app for, therefore for different platforms they use different methods. In this post I will provide a cross platform solution to debug phonegap apps.
Debugging Using Jsconsole
JavaScript remote debugger allows you to debug any web or phonegap app remotely. It overrides the console.log() method and prints everything to a remote machine.
Steps
1. First visit jsconsole website.
2. In the input field enter “:listen”.
3. Copy the script tag code provide into your phonegap HTML file. Make sure you put it as soon as the head tag starts so that debugging can be started quickly.
4. Now you can debug you phonegap app.
Limitation of this method is that the app cannot be debugged offline. For debugging offline you have to use on platform dependent methods.
Leave a Reply