Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript equivalent of System.out.println()

 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there something that can be used to print the value of variables without interfering with the running of the app like alert() does?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic