Quick and Easy Unity Debugging Basics

BMo Dev · 32K views · 2022 · 6:19

Open on YouTube

Testing, debugging & developer toolsIndie game developmenttutorial

Why Stack Overflow recommends it

Stack Overflow users link it when answering beginner Unity questions where the real fix is to set a breakpoint and step through the code instead of guessing.

Recommended by 3 people across 3 different months, 2023 to 2024.

What it is

A short Unity tutorial from the BMo Dev channel on debugging with breakpoints and stepping through code, rather than scattering Debug.Log statements everywhere. It is aimed at beginners but applies to software development in general.

What people said

Recommends TheNomad · 2023-07 · Stack Overflow · on “Why does unity crash when using tooltips?”

For actual debugging, here are some simple tutorial examples: [LINK] and [this video] It might seem difficult at first, but do it 4-5 times and it will feel natural. That is basically **YOU** controlling the whole workflow down to the lowest way to control code execution. Hovering over variables or using the MSVS windows will also show you values of different variables. Best windows to use (please search info about them and what each does) are: Locals, Autos and the Watch Window.

Recommends 2late · 2024-01 · Stack Overflow · on “How do i display the text with the list i have stored ? It is not assigning in UI text ...?”

Try changing the TMP Gui variables to TMP_Text if you are using Text variables & assign them in the editor. This could also be one of your card values being null. Try debugging and seeing for yourself, if you dont know how to debug check this out [this video]

Recommends SpicyCatGames · 2024-11 · Stack Overflow · on “Problems registering inputs”

Try debugging or Debug.Log to see if the input is actually not working or the issue is something else. Here's a guide to debugging [this video]