Skip to content

Debug mobile web applications by redirecting console.log() output to a div at the bottom of the page, avoiding the need for usb cables or driver installation.

Notifications You must be signed in to change notification settings

erspark2002/mobile-web-console-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobile web console logger

Overview

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

Purpose

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.

Installation

$ npm install mobile-web-console-logger --save

$ bower install mobile-web-console-logger --save

NPM

https://www.npmjs.com/package/mobile-web-console-logger

Benefits

  • 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

Screenshots

Screen showing console.log() statements displayed on the web page

Demo

Click here for a demo.

Dependencies

  • jQuery is currently used to build the dynamic list of logging statements.

Server-side Logging

  • 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.

About

Debug mobile web applications by redirecting console.log() output to a div at the bottom of the page, avoiding the need for usb cables or driver installation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published