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

Комментарии • 34

  • @T3QN1Q
    @T3QN1Q 2 года назад +6

    i love debugging logs in the woods

  • @marcelfyi
    @marcelfyi 2 года назад +5

    I feel called out about my use of Debug.Log. :D Thanks, this was very helpful!

  • @After_Pasta
    @After_Pasta 11 месяцев назад

    Old video but thanks heaps! I was so confused about
    using parameters but this will make things a lot easier

  • @Balakademi
    @Balakademi 2 года назад +2

    Thank you. Good tutorials in a short time period

  • @tophinski
    @tophinski 2 года назад +3

    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!

  • @Stompin40
    @Stompin40 2 года назад +1

    Unity videos are always pog! This is a great one!!!!!!!!!!!!

  • @daveinpublic
    @daveinpublic 10 месяцев назад

    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.

  • @semventure
    @semventure 2 года назад +4

    You're making content faster than i can learn.... I LOVE IT! Absolute beast!

  • @iiropeltonen
    @iiropeltonen 2 года назад +5

    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.

    • @iiropeltonen
      @iiropeltonen 2 года назад

      And thanks for The video!

    • @BMoDev
      @BMoDev  2 года назад +2

      I like that idea, thanks!

  • @Johan-rm6ec
    @Johan-rm6ec 16 дней назад

    A great topic would be 'how you can use StackTrace to check which method called a particular method:stack trace'

  • @i_am_set
    @i_am_set 2 года назад

    Love you dude!! Super useful info

  • @justapotato6653
    @justapotato6653 4 месяца назад

    as a unity programmer who hasn't debugged for the first time, this might actually help me.

  • @focalgain
    @focalgain Год назад

    cool thanks for the information/education.

  • @watercat1248
    @watercat1248 2 года назад

    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

  • @LuisGonzalez-dq4bg
    @LuisGonzalez-dq4bg 2 месяца назад

    Great stuff. But the Visual Studio debugging is unbearably slow in my computer.

  • @solelan1094
    @solelan1094 Месяц назад

    i dont have attach option, only "debug project associated with this file" and it dont stop on break points

  • @jr8209
    @jr8209 Год назад +1

    what versions are you using? I have no attach to unity button. Debugger for unity is deprecated.

  • @jigarpanchal0
    @jigarpanchal0 Год назад +1

    I am using mac and the autos window is not Showing what should i do

  • @fdossantos98
    @fdossantos98 Год назад +2

    The main thing you didn't said, how to activate the attach to Unity button.

  • @uchihakai4200
    @uchihakai4200 Год назад

    those 2 windows did not pop up for me

  • @ryanlsindledecker2510
    @ryanlsindledecker2510 Год назад +1

    I don't get that "Autos" tab to appear.. would it go by another name?

    • @edin.
      @edin. Год назад +1

      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"

    • @MerrowGula
      @MerrowGula Год назад

      @@edin. thanks man!

    • @jigarpanchal0
      @jigarpanchal0 Год назад

      @@edin. i am in make and there is no Debug on top

    • @edin.
      @edin. Год назад

      @@jigarpanchal0 What's "make" ? Are you using visual studio 2022 ?

  • @godzillakingkongvenom
    @godzillakingkongvenom 2 года назад

    🌪️☘️

  • @ArnCiS96
    @ArnCiS96 2 года назад

    Visual studio code debugging doesn’t work on macOS and windows, why?

    • @BMoDev
      @BMoDev  2 года назад

      You need to install a package, check my install vs code for unity vid i cover it in there it takes like 30 seconds

    • @ArnCiS96
      @ArnCiS96 2 года назад

      @@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?

  • @clifflin7149
    @clifflin7149 Год назад

    Why don't you teach how to attach to unity player? I guess in practice most people debug on real mobile devices.

  • @mylifehardcore3759
    @mylifehardcore3759 2 года назад +1

    .