File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript equivalent of System.out.println() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Meteor in Action this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript equivalent of System.out.println()" Watch "javascript equivalent of System.out.println()" New topic

javascript equivalent of System.out.println()

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9056
Is there something that can be used to print the value of variables without interfering with the running of the app like alert() does?

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
If you have Firefox, you can use the Firebug extension and for IE there is Firebug lite.


It allows you to do console.log("foo"); and see it in a new window. The full version also has the ability to step through the code.

[ June 27, 2007: Message edited by: Eric Pascarello ]
I agree. Here's the link:
subject: javascript equivalent of System.out.println()