Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Debugging setup

Debug, diagnose, and fix problems in your code.
Read time 1 minuteLast updated a day 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.
Mark up your code for debuggingUse the Debug class in your project code to write messages and errors to the Console window.

Additional resources