The Basics of Debugging Your Code in IntelliJ - Java Programming

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 49

  • @zomssingh8744
    @zomssingh8744 9 місяців тому +8

    Thank you so much, you have explained it in a very simple way. I had checked many videos but they had made it very complex. Thank you once again

    • @willtollefson
      @willtollefson  9 місяців тому +2

      You're welcome! Glad to hear this was helpful for you

  • @DenaTollefson
    @DenaTollefson Рік тому +8

    Fantastic tutorial for how to use the IntelliJ Debugger, Will! You have awesome examples. I like how you show alternatives to the common use of tossing print statements around in code- this is a much better way of troubleshooting

    • @willtollefson
      @willtollefson  Рік тому +3

      Thanks! Its always surprising to me that there isn't more focus in tutorials about code debugging tips

  • @thomasszkoda948
    @thomasszkoda948 9 місяців тому +6

    Thanks for sharing your insight, Will! I am a beginner Java programmer and I honestly didn't know how to use the debugger, so I didn't touch it. But, after watching your video, I want to use it more often. Keep up the good work!

    • @willtollefson
      @willtollefson  9 місяців тому +3

      Thanks for the feedback! I did the same thing when I was learning Java initially and am glad I decided to take the plunge on learning about debuggers :)

  • @raisgamesnz325
    @raisgamesnz325 Місяць тому +3

    This changed my life.

  • @malloryranae8069
    @malloryranae8069 Рік тому +4

    Great video, Will! Good tools like IntelliJ really help with the debugging process

    • @willtollefson
      @willtollefson  Рік тому +2

      Agreed, tools like a good IDE can really make a difference!

  • @vd-ösnd
    @vd-ösnd 4 місяці тому +3

    Thanks a lot ! The best simple explanation I found about how to start debugging in Java. Clear, concise, straight to the point!

    • @willtollefson
      @willtollefson  4 місяці тому

      Glad to hear you liked it! Debuggers can be very useful for sure

  • @matthewlewington2470
    @matthewlewington2470 6 місяців тому +3

    How have i been missing this for years of my life

  • @sashar5646
    @sashar5646 3 місяці тому +2

    Me at the start of this video: "Ah, how simple, I understand everything."
    After the 11th minute: "F-ck."

    • @willtollefson
      @willtollefson  3 місяці тому

      Threading issues and deadlocks can be some really interesting bugs to solve, which is why those thread dumps can be really useful!

  • @praffulshukla4576
    @praffulshukla4576 Місяць тому +2

    thanks will ,u r doing great

  • @francisguchie1973
    @francisguchie1973 2 місяці тому +1

    Wow this is detailed in a simplified way, and your speed is very very comfortable for me and very easy for a new bee to understand debugging

  • @rahul88090
    @rahul88090 9 місяців тому +4

    Nice tutorial brother i am from India

    • @willtollefson
      @willtollefson  8 місяців тому +2

      Thanks - glad to hear you liked the tutorial!

  • @andresj.s.3568
    @andresj.s.3568 7 місяців тому +3

    great video. was able to understand in minutes what i was struggeling to understand since months :D

    • @willtollefson
      @willtollefson  7 місяців тому +1

      Awesome, glad to hear this was helpful!

  • @raisgamesnz325
    @raisgamesnz325 Місяць тому +1

    Really awesome! Thanks so much!

  • @seeyouagainv
    @seeyouagainv 6 місяців тому +1

    Thanks a lot ❤ I used to rely on logging and print statement 😅

    • @willtollefson
      @willtollefson  6 місяців тому

      Same here - print statements used to be my only debugging method initially

  • @KhinlinnHtet-k8f
    @KhinlinnHtet-k8f 8 місяців тому +4

    Thank you so much

  • @KianBrose
    @KianBrose 6 місяців тому +2

    After years of using print statements, finally get to use the debugger

  • @GuruPrasadShukla
    @GuruPrasadShukla 7 місяців тому +2

    great video man highly appreciated
    great work thanks!

    • @willtollefson
      @willtollefson  7 місяців тому +1

      You're welcome. Happy to hear that it helped!

  • @nikhilsinghal7542
    @nikhilsinghal7542 3 місяці тому +1

    Thank you so much it helped a lot

  • @gandamraviteja7019
    @gandamraviteja7019 7 місяців тому +1

    Thank you so much Great video
    Good work brother

  • @audiomac
    @audiomac 2 місяці тому +1

    Great into tutorial! However, I wish you went a little more into detail at the end. For instance, how do we find which threads the thread numbers are referring to? Also, how do we know which objects the threads are locked? You got answers like "0x2fc," but how do we find which variable that is referring to?

    • @willtollefson
      @willtollefson  2 місяці тому

      Thanks for the question! The short answer is that the stack traces in the thread dump will usually tell you enough for a simpler example like this, but I do hear your point about more advanced debugging. In this particular example the trace tells you the line number its blocking on waiting for monitor entry and it tells which thread its waiting on. I've thought about making a video (or a series) on different debugging techniques with threading issues being a top contender. Is that something you'd like to see?

    • @audiomac
      @audiomac 2 місяці тому +1

      @@willtollefson Yes; I would love a series about that. I have been studying computer science for two years now, but my textbook and classes never talked about the debugger. It's actually really embarrassing that I know nothing really about it😂😂

    • @willtollefson
      @willtollefson  2 місяці тому +2

      @audiomac sounds good - I totally get it and I've heard that from a lot of folks. It seems like teaching debugging isn't always a priority which is odd to me since that's a decent portion of what devs do in industry. I'll see about putting out some more debugging videos in the future. Thanks!

  • @bury2909
    @bury2909 10 днів тому +1

    thanks for your video :)

  • @ethanhunt937
    @ethanhunt937 3 місяці тому

    Phenomenal

  • @vishaljain2869
    @vishaljain2869 7 місяців тому +1

    Tahnk you so much, Will! Great video

    • @willtollefson
      @willtollefson  7 місяців тому

      You bet, glad you liked the video!

  • @nareshmanthrabuddi6744
    @nareshmanthrabuddi6744 Місяць тому +1

    Awesome..

  • @WanderlustNoah
    @WanderlustNoah 2 місяці тому

    Thanks!

  • @UmaVatsan
    @UmaVatsan 4 місяці тому +1

    Perfect !!!

  • @slipknotzk9154
    @slipknotzk9154 6 місяців тому

    you save my life

  • @AJCrescenzo
    @AJCrescenzo 26 днів тому +1

    I need help, every breakpoint I set in the code doesnt have a check mark none of them work

    • @willtollefson
      @willtollefson  25 днів тому +1

      It might be good to take out some of the complexity to verify your setup. Write a simple program and add breakpoints to make sure in the nominal case you can see them. Once you have that working, slowly go back to your problem at hand and confirm the setup is equivalent, you’re hitting the code you think you are, and the breakpoint is enabled and not conditional. Good luck!