Printing to the console in Google Apps Script?

The console is not available because the code is running in the cloud, not in your browser. Instead, use the Logger class provided by GAS:

Logger.log(playerArray[3])

and then view the results in the IDE under View > Logs…

Here’s some documentation on logging with GAS.

Edit: 2017-07-20
Apps script now also provides Stackdriver Logging. View these logs in the script editor under View – Console Logs.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)