K
kj
How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?
Thanks!
kj
to Firefox's JavaScript console?
Thanks!
kj
kj said:How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?
I suggest you install the Firebug extension for Firefox:
https://addons.mozilla.org/firefox/1843/
Once you install, the Firefox javascript console replaces the built-in
javascript console. Then you can write to the Firebug console using
this syntax:
console.debug("hello world");
or to print the values of variables foo, bar and baz, you can use
printf syntax:
console.debug("First value is %s, second is %
s and the last is %s", foo, bar, baz);
The documentation for Firebug can be found here:
http://www.getfirebug.com/docs.html
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.