3

To dump some debugging information in client-side javascript I can use console.log(myVar). Can I do the same thing in server-side javascript which runs on V8? Is there any way to dump data to error_log file or something?

2
  • by server side v8 - do you mean node.js? stackoverflow.com/questions/3904273/… Commented Mar 13, 2012 at 4:01
  • if you call console.log(x) in node.js, x will show up in the terminal that you're running node.js in. Commented Mar 14, 2012 at 22:05

1 Answer 1

1

Yes.

$ node -e "console.log('hello world')"; 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.