Test reports

Trigger exceptions in the Unity Editor and view reports in the Unity Dashboard to test reports.
Read time 1 minuteLast updated a day ago

Triggering a test report

To test Diagnostics, trigger a report in the Unity Editor and view it in the Unity Dashboard. To create a report, throw an exception or log an exception message via the
Debug.LogException()
method. To do this, locate a method within your C# script where you’d like the test exception to occur, such as the one that runs when the first screen is loaded, and add the following line:
Debug.LogException(new Exception("Testing Diagnostics reports"));
Save the script and run your game in Play mode. When the exception occurs, the Editor console displays the
Debug.LogException
message.

Viewing your test report

View Diagnostic reports from the Unity Dashboard:
  1. Open your project in the Unity Dashboard.
  2. In the Project Overview tab, select View Diagnostics.
  3. The Issues section contains your test report. Select the title of the test report to view its data.
For information on the data available in reports, refer to Diagnostics page reference.

Batch mode support

Native crash reporting is supported when running Unity in -batchmode. Native crash reporting is also supported when running apps as a Server Build. When running in batch mode, you must specify both
-username
and
-password
in the command line.