文档

​
​

Development

User Acquisition

Monetization

工业

Unity Cloud

Get Started

Asset Manager SDKs and services

Open Unity Dashboard

Unity Cloud

此页面不支持所选语言。
​
​
Unity Dashboard
  • Accounts
  • Organizations
  • Projects
  • Products
  • Billing
Developer Data
  • Introduction to the Developer Data Framework
  • Get started
  • View Diagnostics for your project
    • Access Diagnostics
    • View events leading to a crash
    • Manage reports
      • Set up custom reports
      • Test reports
      • Debugging symbols
    • Diagnostics page reference
  • Privacy and consent
Unity Asset Manager
  • What's new
  • Asset Manager web
  • Asset Store
  • Manage Assets in the Editor
  • Unity Version Control
  • Developer documentation
Unity Pipeline Automation
  • About
  • Get started
  • Pipelines
  • Automations
  • Monitor jobs
  1. Unity Cloud Documentation
  2. Developer Data framework

Test reports

Trigger exceptions in the Unity Editor and view reports for testing in the Unity Dashboard.
阅读时间1 分钟
最后更新于 23 天前

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.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Triggering a test report

    • Viewing your test report

    • Batch mode support


报告此页面的问题