Debug and String in Unity C#

Опубликовано: 16 Март 2026
на канале: Skills Driller
61
1

Debug and String in Unity C#

You can debug script code running in the Unity Editor when the Unity Editor is in Play Mode.

Before attempting to debug, ensure the Editor Attaching option is enabled in the Unity Preferences. This option causes the Editor to use Just In Time (JIT) compilation to execute managed code with debugging information.

First, set a breakpoint in the code editor on a line of script code where the debugger should stop. In Visual Studio for example, click on the column to the left of your code, on the line you want to stop the debugger. A red circle appears next to the line number and the line is highlighted.

Next, attach the code editor to the Unity Editor. This option varies depending on the code editor, and is often a different option from the code editor’s normal debugging process.

thanku guys for watching and Pls support me and Subscribe me for upcoming videos #skillsdriller