Version: Unity 6 (6000.0)
Language : English
Parallel jobs
Debug C# code in Unity

Debugging and diagnostics

Unity supports a range of tools for debugging and diagnosing issues in your project code.

Topic Description
Debug C# code in Unity Track down bugs in your scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
by attaching external debuggers and stepping through your project code as it executes.
The Debug class Use the Debug class in your project code to write messages and errors to the Console windowA Unity Editor window that shows errors, warnings and other messages generated by Unity, or your own scripts. More info
See in Glossary
.
Log files reference Locate Unity’s log files which record messages, warnings, and errors that can help you understand the source of problems in your application.
Stack trace logging Configure the level of stack trace information shown in Unity’s log files and console to help track down problems in your scripts.
Roslyn analyzers and source generators Use analyzers to inspect your code for style, quality, and other issues.

Additional resources

Parallel jobs
Debug C# code in Unity
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961