473,473 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to write to Firefox's JavaScript console?

kj

How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?

Thanks!

kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Jan 2 '07 #1
3 33353
kj wrote:
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

Firebug has a rich debugging syntax, but also a JavaScript debugger(!)
and a DOM inspector.
I've found it to be a wildly useful development tool.

If you're interested in all that as well, here are a couple of links:
http://encytemedia.com/blog/articles...g-with-firebug
http://www.digitalmediaminute.com/sc...st/firebug-js/
>
Thanks!

kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Jan 2 '07 #2
kj

Many thanks!

kj

In <11********************@a3g2000cwd.googlegroups.co m"Noah Sussman" <bl******@gmail.comwrites:
>kj wrote:
>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
>Firebug has a rich debugging syntax, but also a JavaScript debugger(!)
and a DOM inspector.
I've found it to be a wildly useful development tool.
>If you're interested in all that as well, here are a couple of links:
http://encytemedia.com/blog/articles...g-with-firebug
http://www.digitalmediaminute.com/sc...st/firebug-js/
>>
Thanks!

kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Jan 3 '07 #3
kj <so***@987jk.com.invalidwrote in news:en**********@reader2.panix.com:
How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?
Better yet, show warning, errors, debugging info, value of variables,
whatever, right on the page you're debugging, with fvlogger:

http://www.alistapart.com/articles/jslogging
Jan 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine...
1
by: Rose Girl | last post by:
I have a web application that uses xsl and javascript which runs smoothly on IE. Recently i decided to try it on FireFox 1.0 . But the same application gives javascript errors as displayed in the...
3
by: niconedz | last post by:
Hi The following code works fine in IE but not Firefox. It's a little script that zooms an image and resizes the window to fit. Can anybody tell me what's wrong? Thanks Nico == btw.....
45
by: Pat | last post by:
its seems asp.net validation doesn't fire when using FireFox? Tested a page and it doesn't fire. It seems the javascript doesn't fire Any ideas?
5
by: Roger Withnell | last post by:
This is a framed webpage with the navigation bar in "NavBar" and the main window in "Main". When opening a new page in "Main" from "NavBar" with: function OpenFrameWindow(src) { var...
25
by: Frances | last post by:
I have an html file, checked css syntax online (http://jigsaw.w3.org/css-validator/validator-uri.html.en) it all checks fine, got no errors or warnings.. however Firefox is not reading...
19
by: roN | last post by:
Hi, I got following: http://www.inetgate.ch/design.htm It works in Firefox and in Netscape nice 'n fine but not in Explorer...why not? What to change? Thank you! -- chEErs roN I'm root, I'm...
4
by: the other john | last post by:
I came across a third party script I want to learn how to configure as well as learn more dhtml in the doing. I'm not much of a JS guy yet but I'm working on it. This script works fine in IE6...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.