Quick and Easy Unity Debugging Basics
HTML-код
- Опубликовано: 18 апр 2022
- I get so many questions everyday on my videos of people asking why their code isn't working. Sometimes its a simple typo you can infer from an error message, other times its a deeper issue.
Many beginner tutorials first tell you to start putting Debug.Log statements everywhere, which can work and if done well can be a good practice - but its much better to actually learn how to breakpoint your code and step through it to understand how its working.
This is effective for all areas of software development, and as a beginner can be an absolute game changer.
Veterans definitely know this, and for great reason - you won't find a professional that doesn't know how to step through code.
✨Want to support the channel?
Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video to help the algorithm or I'll step through you
➤Join our DISCORD SERVER and be best friends: / discord
Thanks for watching!
#unity #tutorial #bmo #debug
i love debugging logs in the woods
I feel called out about my use of Debug.Log. :D Thanks, this was very helpful!
Old video but thanks heaps! I was so confused about
using parameters but this will make things a lot easier
Thank you. Good tutorials in a short time period
Any way you could do a short tutorial on implementing Plastic SCM? I love your teaching style and I've been trying to get it working for the past few hours to no avail. Great video as always!
Unity videos are always pog! This is a great one!!!!!!!!!!!!
Good stuff. Every single person is a beginner at some point, there's no exceptions. So, no-one has to justify making an intro video for debugging.
You're making content faster than i can learn.... I LOVE IT! Absolute beast!
Viewer suggestion? As a beginning gamedev I hear alot about how something is or is not computationally expensive.
Would love to see a comparison about say FindObjectWithTag or FindObjectWith Type as to how much these practically slow down your game.
And thanks for The video!
I like that idea, thanks!
A great topic would be 'how you can use StackTrace to check which method called a particular method:stack trace'
Love you dude!! Super useful info
as a unity programmer who hasn't debugged for the first time, this might actually help me.
cool thanks for the information/education.
That is what the brake point area
This sounds very useful for debugging
I use one more debugging method in my game wean my code is not ready,
almost all my ver is public the In order to check how exactly the code is working and with that method if something dash not work as indicated im able to see this in my inspector and able to change the value as well in the order to see if the fixed the error with out change my code and break other objects the use the same code
But wean I see that everything work fine I change some off those ver to private and some [serialize feald] private and use public only the stuff that need to be public
Great stuff. But the Visual Studio debugging is unbearably slow in my computer.
i dont have attach option, only "debug project associated with this file" and it dont stop on break points
what versions are you using? I have no attach to unity button. Debugger for unity is deprecated.
I am using mac and the autos window is not Showing what should i do
The main thing you didn't said, how to activate the attach to Unity button.
those 2 windows did not pop up for me
I don't get that "Autos" tab to appear.. would it go by another name?
I found it if anyone needs it :
under the "Debug" dropdown : top left of VS , then it's the first value in the dropdown called "Windows" then in kind of the middle of this new dropdown you have "Autos"
or easier : "Debug" -> "Windows" -> "Autos"
@@edin. thanks man!
@@edin. i am in make and there is no Debug on top
@@jigarpanchal0 What's "make" ? Are you using visual studio 2022 ?
🌪️☘️
Visual studio code debugging doesn’t work on macOS and windows, why?
You need to install a package, check my install vs code for unity vid i cover it in there it takes like 30 seconds
@@BMoDev Sure, but when I run command attach to Unity it says that no Unity instances are found. Visual studio for Mac works just fine. What could be wrong?
Why don't you teach how to attach to unity player? I guess in practice most people debug on real mobile devices.
.
cool