Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Write to Firefox's javascript console


  • From: mdougherty at pbp.com (Mike Dougherty)
  • Subject: [Javascript] Write to Firefox's javascript console
  • Date: Mon Feb 20 12:07:12 2006

I usually add a div to the bottom/top of the page somewhere, then do this:

document.getElementById("dbg").innerHTML += debuggingTestValue ;

Of course innerHTML is bad, yadda yadda - but for debugging it's really simple and provides an 
on-page trail of where your code execution goes.

html:
<div id='dbg'></div>

On Mon, 20 Feb 2006 08:19:19 -0800
  "Geoff Knutzen" <geoffreyk@xxxxxxxxxx> wrote:
> Simple question. 
> 
> Is there any way to write a message to the javascript console in Firefox? I
> would be really useful for debugging and a lot cleaner than a whole bunch of
> Alerts()s ( a real pain if you get stuck in a big loop)
> 
> 
> 
> TIA
> 
> -Geoff
> 
> 
> 
> 
> __________________________________________________________
> This message was scanned by ATX
> 11:38:37 AM ET - 2/20/2006