Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (48 sloc) 2.48 KB
<!DOCTYPE html>
<html lang="en" manifest="jsconsole.appcache">
<meta charset="utf-8" />
<title>JavaScript console - for debugging JavaScript and remote debugging mobile web apps</title>
<meta id="meta" name="viewport" content="width=device-width, user-scalable=no, initial-scale=1" />
Hey there fellow JavaScript lover - I assume you've got a soft spot
for the JavaScript, otherwise what use would a console be to you?
This was primarily built out of a demo I wrote for my upcoming book as a way to introspect what was going on inside
a web worker, since the environment is sandboxed. Then I realised,
I need a sandbox environment/console that I could increase the font
size - and having seen something similar-ish by @thomasfuchs, I went
about tweaking my worker demo to this. About 3 hours work one late
Sunday afternoon.
The way this works, is I generate an iframe on the fly, an run the
commands through an eval *inside* the iframe, so it's a fairly good
enviroment to run tests. Then I've got a custom stringify function
because JSON.stringify doesn't decode native DOM objects, like the
DOMWindow object.
There's more I want to do with this, so watch the github account
or even contribute:
Otherwise, hope you enjoy this app. Any questions or issues, drop
me a message on github or Twitter:
- Cheers, @rem
<link rel="icon" href="/favicon.png" type="image/png">
<link rel='apple-touch-icon' href='/favicon.png' />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link href="/startup.png" rel="apple-touch-startup-image" />
<link rel="stylesheet" href="console.css" />
<textarea autofocus id="exec" spellcheck="false" autocapitalize="off" rows="1" autocorrect="off"></textarea>
<div id="console">
<ul id="output"></ul>
<div id="footer"><a href="/app/">Get the native iOS app</a> &bull; <a href="">Fork on Github</a> &bull; <a href="">Built by @rem</a></div>
<script src="prettify.packed.js"></script>
<script src="EventSource.js"></script>
<script src="console.js"></script>
<script>var _gaq=[['_setAccount','UA-1656750-21'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//';s.parentNode.insertBefore(g,s)})(document,'script')</script>
Jump to Line
Something went wrong with that request. Please try again.