Skip to content

Virtual Console for debugging javascript on mobile devices

Notifications You must be signed in to change notification settings

SergProduction/virtual-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Languages: Russian, English

Virtual cnosole

Is designed for debugging code in mobile browsers

Installation

  • Usage in Node
    npm install virtual-console

  • Usage in Browser
    <script src="virtualConsole.js"></script>

Initialization

Script must be connected separately, before the code. If you are using nodejs, you need to refer to the initialization of:

  • Usage in Node
    require('virtual-console')(options)

  • Usage in Browser
    virtualConsoleInit(options)

Options

  • url: If you specify url, the console will appear if you have the proper lines in the url after the hash. Example: require('virtual-console')({url: "console=true"}) yourhost.com#console=true

  • inside: If the virtual Console is connected to the same file with the main code, you must specify this option require(virtual-console)({inside: true}), otherwise, the virtual console will not display the call string

Example

  • Output console. log, warn, info, error

  • Output all types of errors, like the google chrome console

About

Virtual Console for debugging javascript on mobile devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published