This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 9058
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()
It's not a secret anymore!