Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Debugging setup

Debug, diagnose, and fix problems in your code.
Read time 1 minuteLast updated 2 days ago

Attach a debugger to the Unity Editor or a Player, and add logging to your code so you can diagnose problems while your application runs.

Topic

Description

Set up C# debuggingTrack down bugs in your scripts by attaching external debuggers and stepping through your project code as it executes.
Troubleshooting debuggingTroubleshoot common problems with attaching to and debugging the Unity Editor or Player.
Mark up your code for debuggingUse the Debug class in your project code to write messages and errors to the Console window.

Additional resources