Remote console for mobile web diagnosis
January 20th, 2012Remy Sharp has developed a tool for remotely debugging web pages. This works using code injection, so be very sure to keep it out of production environments. However, when you need to diagnosis issues remotely, say, because it’s on a mobile device, with limited console support, or because a client is reporting problems that you can’t repeat locally.
Implementing this is a snap!
:listenThis returns an UUID which you will need to insert into the page markup:
<script src="http://jsconsole.com/remote.js?FAE031CD-74A0-46D3-AE36-757BAB262BEA" type="text/javascript"></script>
From then on, calls to console.log() will return their output to your listening machine.
The really handy library has one more trick up its sleeve. You can specify the UUID to which you will listen.
:listen FAE031CD-74A0-46D3-AE36-757BAB262BEA
When the remote device loads the debugging module, you’ll see something like this in your console:
:listen FAE031CD-74A0-46D3-AE36-757BAB262BEA Creating connection... Connected to "FAE031CD-74A0-46D3-AE36-757BAB262BEA" Connection established with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8


Previous Post
Next Post

1 Comment
January 21st, 2012 at 3:44 pm
[...] Remy Sharp nails it with his remote Debugging Console. The tool can be found here: jsconsole and a brief description can be found here. [...]