Another possibility is to use weinre:
http://people.apache.org/~pmuellr/weinre-docs/latest/
install it through node.js and start the weinre server with the following command:
weinre --boundHost -all-
then bind the weinre debugger in your index.html (replace localhost with your actual IP address):
<script src="http://127.0.0.1:8080/target/target-script-min.js#anonymous"></script>
Weinre will show you the console and explorer, similar to the developer tools in browsers. You can contact him on your PC by clicking http://localhost:8080 in your browser.
EDIT: see also a summary of debugging methods: https://github.com/phonegap/phonegap/wiki/Debugging-in-PhoneGap
source share