• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
  • Created almost 11 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Displays logs and Javascript errors in an overlay on top of your site. Useful for mobile webdevelopment. Enabled in 5 seconds

console-log-viewer.js

.. displays logs and Javascript errors in an overlay on top of your site. Useful for mobile webdevelopment. Installed in 5 seconds [1]. Works on every device and browser [2].

It's useful when you want to see logs and the errors you [3] have created in a mobile browser while you are developing and debugging.

I found debugging is a bit hard on mobile devices since there is no magic button in mobile browser to see the console logs or Javascript errors and related source. There are a lot of remote-tools. Some are not available for all browsers, take time too much time to setup or aren't sync because of remote delays.

How to install (in 5 seconds)?

Add this piece of code somewhere in your html-page. Save document, refresh browser.
In the <head> before other <script> tags is probably the best place.

<script src="https://markknol.github.io/console-log-viewer/console-log-viewer.js"></script>

console log viewer

What does it do?

It captures console.log, console.info, console.warn, console.debug, console.error and window.onerror and displays it in an overlay on top of your site. That's it.

Features

Close / Open console

  • Closes the console with the x button, and bring back with the Ξ button.
  • Tip: Toggle the console with the keyboard ~ tilde key.
  • Start closed using:
<script src="https://markknol.github.io/console-log-viewer/console-log-viewer.js?closed=true"></script>

Pause

  • Pause/resume the console logs by pressing the â–º button
  • Start minimized using:
<script src="https://markknol.github.io/console-log-viewer/console-log-viewer.js?log_enabled=false"></script>

Minimize

  • Minimize the console with the - button, and bring back to normal with the + button.
  • Start minimized using:
<script src="https://markknol.github.io/console-log-viewer/console-log-viewer.js?minimized=true"></script>

Alignment

  • Switch top/bottom alignment by pressing the ↑ or ↓ button in the console.
  • Start bottom aligned using:
<script src="https://markknol.github.io/console-log-viewer/console-log-viewer.js?align=bottom"></script>

Displaying errors

Clicking on a Javascript-error opens the source in a new tab (demo).

Source

The source can be found here: https://github.com/markknol/console-log-viewer/blob/gh-pages/console-log-viewer.js

Disclaimers

[1] .. depends on your copy/paste skills
[2] .. if this isn't true report here
[3] .. protip: blame someone else

More Repositories

1

flambe-guide

Useful Flambe guide
56
star
2

js13k-2020

A soothing game about perspective
Haxe
41
star
3

flash-jsfl-tools

Official source - from code.google.com/p/flash-jsfl-tools
JavaScript
38
star
4

hxobfuscator

Shortens names for smaller output and better gzip compression in Haxe/JavaScript builds
Haxe
32
star
5

hxnew

Create new Haxe projects in a blast
Haxe
23
star
6

coconut.bootstrap

Bootstrap for Haxe/Coconut.ui
Haxe
18
star
7

hx-quicksettings

Haxe extern classes for https://github.com/bit101/quicksettings
Haxe
17
star
8

haxe-doc-stats

Are we documented yet? Code documentation coverage metrics for Haxe
Haxe
17
star
9

hx-uglifyjs

Minify Haxe/JavaScript using uglifyjs
Haxe
13
star
10

hx-vector2d

2d Vector for Haxe
Haxe
12
star
11

haxe-dependency-graph

Source for https://projects.stroep.nl/haxe/dependencies-graph/
Haxe
12
star
12

coconut.questions

coconut.ui questions / answers
9
star
13

hx-lzstring

LZString port in Haxe
Haxe
8
star
14

hx-mathparser

Evaluates math expressions. Written in Haxe.
Haxe
8
star
15

online-haxe-formatter

Online tool to try the `formatter` haxelib
Haxe
7
star
16

hx-googlecast-externs

Haxe/JavaScript externs for Google Cast Receiver, Sender, Game SDK for the Google Chromecast
Haxe
6
star
17

hx-minifier

Haxe HTML/CSS Minifier
HTML
5
star
18

spritesheet-splitter

Split spritesheets into separate images
Haxe
5
star
19

hx-jsonp

JSONP (or JSON with Padding) for Haxe
Haxe
4
star
20

chrome-extension-disabler

Chrome Extensions Disabler
HTML
2
star
21

haxe-backpropagationnet

Back propagation neural network
Haxe
2
star
22

markknol

✨special ✨repository
1
star
23

html-haxe-code-highlighter

Basic Haxe code highlighting for HTML
Haxe
1
star