Testing and Debugging

There are 2 ways to test and debug your projects in AR Studio:

  • Console logging
  • The AR Studio Player app

Console Logging

You can use the Console in AR Studio to display values of variables from the script you've added to your project.

This is done with the log(data) method of the Diagnostics. module.

Log statements are script instructions that only work in AR Studio. Since they are script statements, if they are included in your shipped effect, the script processor will try to execute them and no action will be taken. This can have a negative effect on performance so remove all Diagnostics.log() calls from your scripts before shipping your final effect.

Showing and hiding the Console

To show or hide the Console:

  1. Click View in the menu bar
  2. Select Show Console or Hide Console from the menu

The Console will appear below the Viewport.

Running and stopping scripts

To run the script in your scene, click Run in the Toolbar. To stop it, click Stop.

AR Studio Player

Once you're ready to test your project on a mobile device, you can use the AR Studio Player app. The app is available on both iOS and android mobile devices. To use it, you'll need:

  • A mobile device with the app installed
  • A USB cable
  • A saved AR Studio project

Download

For details on using the AR Studio Player, see Using the AR Studio Player App.