File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

javascript equivalent of System.out.println()

Marilyn de Queiroz
Sheriff

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


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

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

Links:
http://www.getfirebug.com/
http://www.getfirebug.com/lite.html

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.

Eric
[ June 27, 2007: Message edited by: Eric Pascarello ]
 
Consider Paul's rocket mass heater.
 
subject: javascript equivalent of System.out.println()