Debug with logs

In a server authoritative game, your code isn't on the player client. This means it's important to have proper observability to debug issues in a server authoritative game. To monitor your game, you can use logs, which Cloud Code and Triggers automatically generate.

To avoid blind spots in complex cloud code, you need detailed logs. You can add your own custom log statements in Cloud Code to record debugging information. For example, you can strategically log steps, inputs, outputs and errors to increase observability and help you pinpoint bugs.

For more information, refer to Logging.