Seeing the JavaScript console when writing PhoneGap applications in Eclipse

Recently I’ve been doing some work with writing PhoneGap/Dojo Mobile applications for Android, using Eclipse as the IDE. These work just fine with the Android emulator, but it took me a while to find where I could see the output of the JavaScript console. To show it, select Window -> Show View -> Other… in Eclipse. Then select the LogCat view (under the Android section). This will show all log messages for the emulator, but it can be further filtered to show only errors from the JavaScript console. Simply click on the green cross to add a Filter, then give the filter a name and enter “Web Console” for the Log Tag. Click OK and you’ll see only errors related to the browser (including JavaScript errors).