Display console.log() output in a div at the bottom of a web page for debugging mobile devices.
NOTE: If you have an 'Uncaught SyntaxError' on the page, then all javascript will stop running, including the console logger library. eg. Uncaught SyntaxError: Unexpected identifier
The mobile web console logger library helps you debug mobile web pages. If you only have Windows, and you want to quickly check the console on an iOS device, or you are using OSX and you want to check an Android device, you can simply add this library to your webpage.
$ npm install mobile-web-console-logger --save
$ bower install mobile-web-console-logger --save
https://www.npmjs.com/package/mobile-web-console-logger
- Debug web pages on Android and iOS devices without any setup
- No usb cables
- No drivers to install
- Logs:
- console.log(), console.info(), console.warn(), console.error(), console.debug()
- uncaught exceptions
- divide by zero errors (result=Infinity)
- result is not a number (NaN)
- nulls
- undefined values
- reference errors where property or function "is not defined"
- empty strings
- jQuery is currently used to build the dynamic list of logging statements.
- As the library captures all console error logging and page errors as text, it could be forked to send this information to the server via ajax.