Unity Debugging with Visual Studio

preview_player
Показать описание
I got some requests on how to use debugging for C# code in Unity projects and Visual Studio so here is an example project with a UI panel in which I show you how to use the debugger and breakpoints.

You can download the free community edition of Visual Studio 2019 here:

Debugging is essential when developing software and games so that you can find bugs in your scripts.

See my social profiles here:

Рекомендации по теме
Комментарии
Автор

Wow that was pretty helpful... Now unity is slightly less of a mystery to me

TheKBrosTech
Автор

Short overview:
- You can set breakpoints in your code where the code excecution is halted by clicking the area left of the row number. There you can inspect the state of your variables.
- You can go through your code excecution with F10 (skips methods) and F11 (enters methods).
- In the Locals window you can watch all local and instance variables for your breakpoint.
- In the Watch window you can add single variables to watch them, so you have an overview about points of interest. To add these just mark them and then drag and drop them to the window.
If you don't have one of these windows, just add them by clicking Debug -> Windows, then Locals or Watch

bobbobson
Автор

brand new to unity and VS, very succinct and helpful. thanks!

darnocab
Автор

hi, brother in my vs the locals window, and call stack window is not appearing even after playing the game. only one window called output is visible during the debugging process. can you help me

fedrogamedev
Автор

thanks for the vid mate! now able to debug with more ease

okiedokiee
Автор

make a video about Unity Debugging process for iOS with Visual Studio for Mac

MakakaOrg
Автор

Hey, since you do modeling too, can you make toturial videos on how to make the tremor tremor devil fruit's crack?? Its from one piece, Whitebeard uses it

soyuzbhattarai
Автор

Only windows output appears, no call stack or any other windows. Also, the output is completely empty, it doesn't show me anything. What's the issue here?

Kingstantin
Автор

Hi once I install the unity tools using visual studio installer modify option and then try to add debug points and debug it isnt actually giving me an option to attach to unity but just simply attach to process. Did I install it incorrectly I already had visual studio 2019 community edition installed.

ilw
Автор

I'm getting the breakpoint cannot be bound

Cephlin
Автор

This is stupid it doesn't teach how to set up visual studio to work with unity

alejandroborge