Test reports
Trigger exceptions in the Unity Editor and view reports in the Unity Dashboard to test reports.
Read time 1 minuteLast updated a year 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 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()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 message.
Debug.LogExceptionViewing your test report
View Diagnostic reports from the Unity Dashboard:
- Open your project in the Unity Dashboard.
- In the Project Overview tab, select View Diagnostics.
- 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 and in the command line.
-username-password