I am using the latest phonegap/cordova version 2.1. and I am getting too many logs in eclipse logcat: everything is logged twice using f.e.
console.log("test")
CordovaLog test
Web Console test
This could be disabled by a filter in eclipse, but there must be smarter solution.
You should edit the following entry
<log level="DEBUG"/>
in the config.xml
file.
Available values are ERROR, WARN, INFO, DEBUG, VERBOSE (default=ERROR)
Setting to ERROR
you will see the least amount of log messages.
Take a look at this
http://css.dzone.com/articles/setting-console-debugging
UPDATE :
After a lot of hard work, I found out that is the BEST and the ONLY solution available right now to debug your javascript code with phonegap is to open the HTML file in the browser and use its console to debug it IE (Google Chrome) , Also, JSFiddle's JSLint feature will help you find almost all the bugs in your code
Best Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With