1. Home
  2. Docs
  3. UniREST Solution 3.5
  4. UniREST Client
  5. UniREST Client Tools
  6. Debug Mode

Debug Mode

The UniREST Client class has a property called debugMode. It’s set to false by default. It can be set to true in any moment, ideally when your Unity game starts or at the start of some Scene.

UniRESTClient.debugMode;

When debugMode is true, all the UniREST Client activities are shown in the Unity Console, using styles and colors for better organize the provided information.

void Start() {
     UniRESTClient.debugMode = true;
}

Example of Console messages from debugMode


All debug messages are also stored in the debug property, that’s a simple List of strings.

UniRESTClient.debug;

For example, you can use this property to show messages directly on the Scene.