my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes need System.out.println() in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "need System.out.println() in javascript" Watch "need System.out.println() in javascript" New topic

need System.out.println() in javascript

paul wheaton

Joined: Dec 14, 1998
Posts: 20972

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?

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Man, is this a homework assignment.

paul wheaton

Joined: Dec 14, 1998
Posts: 20972

It works! Thanks Eric!
I agree. Here's the link:
subject: need System.out.println() in javascript
It's not a secret anymore!