[Javascript] Write to Firefox's javascript console
Mike Dougherty
mdougherty at pbp.com
Mon Feb 20 12:10:01 CST 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 at seanet.com> 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
More information about the Javascript
mailing list