subscribe feed

Console access

Posted on Thursday, 29th April, 2010 by Douglas Radburn

I use Firebug to debug webpages. I’m sure a lot of people do.

I also, find myself using “alert(variable)” quite often when debugging some JS that is infurating me at the time.

If you combine JS and Firebug, you can use console.log(variable); to show the variable value in the Firebug console instead of alerting it on a page. This, as I have learnt, is a much better way to debug code on a live site.

Related posts

You may be interested in the following related posts:

Leave a Reply

avatar

Your name

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright Douglas Radburn – douglasradburn.co.uk © 2010
Theme Author: MascaraDesign - Community based WordPress theme.