The Basics of Debugging Your Code in IntelliJ - Java Programming

  Рет қаралды 15,672

Will Tollefson

Will Tollefson

Күн бұрын

Пікірлер: 49
@zomssingh8744
@zomssingh8744 9 ай бұрын
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 ай бұрын
You're welcome! Glad to hear this was helpful for you
@thomasszkoda948
@thomasszkoda948 9 ай бұрын
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 ай бұрын
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 :)
@DenaTollefson
@DenaTollefson Жыл бұрын
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 Жыл бұрын
Thanks! Its always surprising to me that there isn't more focus in tutorials about code debugging tips
@raisgamesnz325
@raisgamesnz325 Ай бұрын
This changed my life.
@malloryranae8069
@malloryranae8069 Жыл бұрын
Great video, Will! Good tools like IntelliJ really help with the debugging process
@willtollefson
@willtollefson Жыл бұрын
Agreed, tools like a good IDE can really make a difference!
@vd-ösnd
@vd-ösnd 4 ай бұрын
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 ай бұрын
How have i been missing this for years of my life
@praffulshukla4576
@praffulshukla4576 Ай бұрын
thanks will ,u r doing great
@francisguchie1973
@francisguchie1973 2 ай бұрын
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
@willtollefson
@willtollefson 2 ай бұрын
Glad it was helpful!
@sashar5646
@sashar5646 3 ай бұрын
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!
@rahul88090
@rahul88090 9 ай бұрын
Nice tutorial brother i am from India
@willtollefson
@willtollefson 8 ай бұрын
Thanks - glad to hear you liked the tutorial!
@andresj.s.3568
@andresj.s.3568 7 ай бұрын
great video. was able to understand in minutes what i was struggeling to understand since months :D
@willtollefson
@willtollefson 7 ай бұрын
Awesome, glad to hear this was helpful!
@raisgamesnz325
@raisgamesnz325 Ай бұрын
Really awesome! Thanks so much!
@willtollefson
@willtollefson Ай бұрын
Happy to help!
@KianBrose
@KianBrose 6 ай бұрын
After years of using print statements, finally get to use the debugger
@willtollefson
@willtollefson 6 ай бұрын
Awesome!
@audiomac
@audiomac 2 ай бұрын
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 ай бұрын
@@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 ай бұрын
@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!
@seeyouagainv
@seeyouagainv 6 ай бұрын
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 ай бұрын
Thank you so much
@vishaljain2869
@vishaljain2869 7 ай бұрын
Tahnk you so much, Will! Great video
@willtollefson
@willtollefson 7 ай бұрын
You bet, glad you liked the video!
@GuruPrasadShukla
@GuruPrasadShukla 8 ай бұрын
great video man highly appreciated great work thanks!
@willtollefson
@willtollefson 8 ай бұрын
You're welcome. Happy to hear that it helped!
@nikhilsinghal7542
@nikhilsinghal7542 3 ай бұрын
Thank you so much it helped a lot
@willtollefson
@willtollefson 3 ай бұрын
You're welcome!
@gandamraviteja7019
@gandamraviteja7019 7 ай бұрын
Thank you so much Great video Good work brother
@bury2909
@bury2909 15 күн бұрын
thanks for your video :)
@willtollefson
@willtollefson 15 күн бұрын
My pleasure!
@AJCrescenzo
@AJCrescenzo Ай бұрын
I need help, every breakpoint I set in the code doesnt have a check mark none of them work
@willtollefson
@willtollefson Ай бұрын
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!
@nareshmanthrabuddi6744
@nareshmanthrabuddi6744 2 ай бұрын
Awesome..
@willtollefson
@willtollefson 2 ай бұрын
Thanks!
@ethanhunt937
@ethanhunt937 3 ай бұрын
Phenomenal
@WanderlustNoah
@WanderlustNoah 2 ай бұрын
Thanks!
@UmaVatsan
@UmaVatsan 4 ай бұрын
Perfect !!!
@slipknotzk9154
@slipknotzk9154 6 ай бұрын
you save my life
Checked and Unchecked Exceptions in Java - Java Programming
16:06
Will Tollefson
Рет қаралды 1,7 М.
How To Debug Java Code The Right Way - Eclipse Debugger Full Tutorial
22:18
Are You Using Java's Parallel Streams Correctly? - Java Programming
13:34
How to debug with Intellij IDEA like  PRO 🚀 🐞
36:45
Bouali Ali
Рет қаралды 11 М.
Debug Java Like a Pro in IntelliJ IDEA
17:28
Tom Gregory Tech
Рет қаралды 48 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 28 МЛН
So, you want to be a programmer?
20:43
ForrestKnight
Рет қаралды 413 М.
Python Debugging (PyCharm + VS Code)
24:18
mCoding
Рет қаралды 39 М.
Intellij Coding Shortcuts You Need to Know
13:25
Sebastian Daschner
Рет қаралды 20 М.
Debugging Like A Pro
5:48
ByteByteGo
Рет қаралды 116 М.
30+ Eclipse Shortcuts Every Java Programmer Should Know
12:46
Coding with John
Рет қаралды 135 М.