Posted by & filed under Android, Mobile, Open-source, Web Development. 11,868 views


While one would expect console.log() messages to show up in the Eclipse console tab (which shows the Android emulator being launched), they actually show up in the LogCat tab, a mechanism for collecting and viewing system debug output on Android. However the LogCat tab/windows is not shown by default on Eclipse.

In order to show the tab in Eclipse, select Window -> Show View -> Other… in Eclipse. In the Android section, select the LogCat view which will show log messages for the emulator including your console.log messages under the “Web Console” topic. In order to isolate them click on the green cross to add a Filter, name the filter and assign “Web Console” to the Log Tag. By clicking OK, you’ll show only the Web Console messages including JS errors and your console.log output.