Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need System.out.println() in javascript

 
paul wheaton
Trailboss
Pie
Posts: 21598
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a few hundred lines of javascript. As I run the script in a web page, I would like to see that certain parts of the app are executed. Plus I would like to see what the values are at that point.

I started off with alert(), but that moved the scope away from my stuff and so that didn't work.

Next, I tried to assign strings to "status" and "defaultStatus", those didn't work either. Perhaps I'm using them wrong?

Any suggestions on how I might be able to send myself clues on what is going on?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Man, is this a homework assignment.
http://www.coderanch.com/t/120286/HTML-JavaScript/javascript-equivalent-System-out-println

Eric
 
paul wheaton
Trailboss
Pie
Posts: 21598
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works! Thanks Eric!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic