Septagram
Septagram

Reputation: 9785

How do perform logging or debug output in a server script?

I'd like to output some data to the console or any other visible place to help with debugging. Apparently Logger.log() doesn't do that, or if it does, I have no idea where to see the results (at least in the preview mode).

Is there any functionality for debug output in the server scripts?

Upvotes: 0

Views: 593

Answers (1)

Morfinismo
Morfinismo

Reputation: 5243

I strongly encourage you to check the official documentation to get to know the basics. Using console.log("test") will log anything to the server side logs, which you can access from the preview mode.

Upvotes: 2

Related Questions