Mark Harrison Mark Harrison - 1 year ago 132
Javascript Question

JavaScript: How do I print a message to the error console?

How can I print a message to the error console, preferably including a variable?

For example, something like:

print('x=%d', x);

Dan Dan
Answer Source

Install Firebug and then you can use console.log(...) and console.debug(...), etc. (see the documentation for more).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download