How to Use a Debugger - Debugger Tutorial

  Переглядів 281,382

Tech With Tim

Tech With Tim

3 роки тому

In this video I will be teaching you how to use a debugger. This debugger tutorial will show you how to debug, answer the question: what is debugging and show you how to use the vscode debugger. We will be debugging python code in VSCode but this tutorial will be teaching general debugging concepts that should apply to all debuggers.
VSCode Download: code.visualstudio.com/download
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
🔊 Subscribe to my second channel for weekly podcasts! / @timeoutwithtim
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
👕 Merchandise: teespring.com/stores/tech-wit...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My UKposts Gear 🎬
🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
🕹 Tripod: amzn.to/3hpSprv
🎤 Main Microphone (Rode VideoMic Pro): amzn.to/3d0KKMG
🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
🎤 Third Microphone (Blue Yeti USB Mic): amzn.to/3hoD625
☀️ Lights: amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
🖱 Mouse (Steelseries Rival 300): amzn.to/3cVTqnD
📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
💻 Main Monitor (LG 4K): amzn.to/37ybtiH
💻 Secondary Monitor (Thinkvision 1080p): amzn.to/2AyHR8H
🎤 XLR Microphone (Rode NT1): Not available
🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
🎚 Audio Interface (Behringer 4 Channel): amzn.to/3fqm4z3
💾 Recorder (Zoom H6): amzn.to/2UIihVJ
◾ 💸 Donations 💸 ◾
💵 One-Time Donations: www.paypal.com/donate/?token=...
💰 Patreon: / techwithtim
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
⭐ Tags ⭐
- Tech With Tim
- Debugger Tutorial
- How to use a debugger
- What is debugging
- Debugging
- VSCode Debugger Tutorial
- Debugging Tutorial
⭐ Hashtags ⭐
#Debugging

КОМЕНТАРІ: 240
@TechWithTim
@TechWithTim 3 роки тому
What tutorials do you want to see next?!
@therealosose
@therealosose 3 роки тому
Projects you can do with golang
@simonboteroaristizabal687
@simonboteroaristizabal687 3 роки тому
How to use PyCharm in an advanced way
@simonboteroaristizabal687
@simonboteroaristizabal687 3 роки тому
Or how to code a pygame game for mobile!! Should be complex enough and very cool
@gidartsproduction5439
@gidartsproduction5439 3 роки тому
School management system software tutorial_02
@EAU183
@EAU183 3 роки тому
An efficient way to use EMACS as a IDE.
@dpskane
@dpskane 3 роки тому
there is one part about debugging that you left out, which is sometimes quite important: conditional breakpoints. Because due to an exception you might know the line where the error happens and certain values of variables at that point, but if it's inside a big for loop you might have to click "continue" hundreds of times before you get to the one loop that breaks everything. In your code e.g. there could be an exception when "num = 349". you don't understand, *why*, but you either have to change the code or you need to put a condition on your breakpoint - otherwise you might have to click a bizillion times before num actually turns into 349
@aanisnoor229
@aanisnoor229 2 роки тому
Thank you!
@Lazerbeam50
@Lazerbeam50 3 роки тому
This is easily one of the most useful programming skills I've ever learned. Thank you so much for explaining everything so clearly!
@hanweiz84
@hanweiz84 2 роки тому
Thanks Tim. Felt like I somewhat "levelled up" after watching your debugger video. I have been printing debugging statements within my code the entire time!
@mandem5176
@mandem5176 Місяць тому
I remember watching your coding tutorials and stream and here I am 4 years later, back for some nostalgia.
@Raghav1205
@Raghav1205 3 роки тому
Hey Tim could you do some advanced data structures stuff like graphs and graph algorithms and how to implement them
@databridgeconsultants9163
@databridgeconsultants9163 3 роки тому
Thanks Tim . Your Videos are Superb . Atleast you make videos which are directly implementable in real life projects . Great Job man .
@dhruvgupta3177
@dhruvgupta3177 3 роки тому
right when i was getting stuck with a bunch of bugs... TIM SAVES THE DAY!!! thanks tim keep doing what u do i got my real interest in python bcz of u
@stevencvisuals
@stevencvisuals 3 роки тому
Nothing more annoying than a bad indentation -_-
@tempor8336
@tempor8336 3 роки тому
Steven Cheung or mixing = and == searching for the error during 3 hours and then figuring it out.
@juliajulsen5623
@juliajulsen5623 3 роки тому
Thanks for the video! I also find myself using the debug console in VS Code often. Extremely useful tool
@AliAliOxenFree
@AliAliOxenFree Рік тому
great video. clear, concise and to the point. no extra fluff. earned a sub!
@_sammy
@_sammy 3 роки тому
I know most people who will watch this video probably program in either Python or Java, but for any of my C and C++ programmers, I highly suggest learning how to use gdb. It runs in the command line so it’s really light weight. I’m sure there are tons of tutorials online. It’s really powerful and save you from tons of headaches, speaking from personal experience 😅
@debjyotiray8364
@debjyotiray8364 3 роки тому
Man, I take you as my role model; you are just too awesome at explanation
@narfee7529
@narfee7529 3 роки тому
I needed this! Thanks Tim 🙏
@TechWithTim
@TechWithTim 3 роки тому
Glad it was helpful!
@tanmaydeshpande
@tanmaydeshpande 3 роки тому
Same. Never figured out how to use a debugger before this vid.
@krishshah3974
@krishshah3974 2 роки тому
@@tanmaydeshpande ikr
@Bennilenny
@Bennilenny 3 роки тому
I knew about debugging but NOT ABOUT THE STEP BUTTON !! thanks, Tim.
@toreger2852
@toreger2852 Рік тому
Third video was the charm! Still the best ground-up explanation two years later :))
@TechWithTim
@TechWithTim Рік тому
Glad it was helpful!
@noe1448
@noe1448 2 роки тому
Thank you so much for this video, so eloquent as usual !
@therealosose
@therealosose 3 роки тому
I just needed this thanks tim!!
@datarobe
@datarobe Рік тому
This video is very helpful, I searched a lot but was unable to get step by step procedure to use VS code Debugger for Python ( even the VS Code document does not give this level of clarity ). Thank You. P.S. - I am almost new to Python ( Actually any programming language ). 😊
@johndavies729
@johndavies729 2 роки тому
A moment of silence for those of us who already went through the fun tutorials but broke something and now we've ended up here
@himanshuagrawal2014
@himanshuagrawal2014 Рік тому
Excellent Video and thoroughly explained, Stay Blessed. Thank you so much.
@qorbanimaq
@qorbanimaq 3 роки тому
Really helpful! Thank you, Tim.
@pampagrimaldi8584
@pampagrimaldi8584 2 роки тому
very clearylt explained Tim, thank you very much!
@servantofthelord8147
@servantofthelord8147 9 місяців тому
I always used to ignore this part of the menu until today. 😂😂Thank you
@peterv3122
@peterv3122 Рік тому
This is a great video. Thanks Tim!
@Sumit-pl8rq
@Sumit-pl8rq 3 роки тому
Thanks for this wonderful explanation.
@mizel_1121
@mizel_1121 3 роки тому
I’m not speaking English but you are the best you never lies u tech me something that I need thank you bro
@Moonlight-jx2sj
@Moonlight-jx2sj 3 роки тому
I think you missed the main part: how to set up the .json file for debugger.
@mariany4691
@mariany4691 2 роки тому
It's usually very dependent on the language you're coding in
@JamesTJoseph
@JamesTJoseph 3 роки тому
Conditional breakpoint, it is helpful when looping through an iterable.
@mohammadahsan7873
@mohammadahsan7873 3 місяці тому
Its really helpful. Thanks a lot. ❤
@FirstLast-gk6lg
@FirstLast-gk6lg 3 роки тому
I would like to see overviews of wide concepts. For example look at a full stack project and give a top down overview of what the technologies are and what they do
@anandmano4375
@anandmano4375 2 роки тому
Excellent Sir... for the Best Tutorial on Debugging on VS code...
@saxsafon
@saxsafon 3 роки тому
Thanks, Tim! Just in time
@hiteshpant9868
@hiteshpant9868 3 роки тому
FABULOUS EXPLANATION... KEEP IT UP
@marytavakoli3692
@marytavakoli3692 Рік тому
I learned a lot, as always
@hemanth6951
@hemanth6951 3 роки тому
One of the best editor
@himbary
@himbary 3 роки тому
Thanks! No one talked about how it actually works
@woltron4o
@woltron4o Рік тому
Great video Tim!
@umerselmani6799
@umerselmani6799 3 роки тому
Idk why, but I guess I need a bit more explanation to wrap this thing around my head, all is good, I suppose I will have to get my hands dirty with this to grasp the idea of the debugger. Thank You.
@premkatta1128
@premkatta1128 3 місяці тому
Thanks, simple and useful video !
@Michael201078
@Michael201078 Рік тому
Very good explanation. Thank you
@MysteriousK69
@MysteriousK69 3 роки тому
Would love to see Android game development
@mrpancakes
@mrpancakes 3 роки тому
Thank you for this
@saminchowdhury7995
@saminchowdhury7995 3 роки тому
Thank you so much master This was very helpful
@TechWithTim
@TechWithTim 3 роки тому
Glad it helped!
@ianbortnic2960
@ianbortnic2960 2 роки тому
This was so useful!
@satoshinakamoto171
@satoshinakamoto171 3 роки тому
software design tutorial # 2? i really liked the first part. thanks
@BeijingCornDealer
@BeijingCornDealer 3 роки тому
thanks i needed this
@adityaroshan1688
@adityaroshan1688 2 роки тому
What a fantastic tutorial
@redrum4486
@redrum4486 2 роки тому
Awesome! I used to get frustrating runnign the debug and it would just run the app - ALL because i did not include breakpoints before hand xD
@samsunggalaxyj7816
@samsunggalaxyj7816 8 місяців тому
Where we can see the output and where we can input something?
@khangthaitran
@khangthaitran Рік тому
Very informative video! Thanks!
@user-wc1sm8cj8s
@user-wc1sm8cj8s 2 роки тому
extremely helpful!!!!! thanks!!!
@paramjangale5549
@paramjangale5549 3 роки тому
Really helpful!!
@superbroker.dxb007
@superbroker.dxb007 Рік тому
amazing amazing. You will go places my friend.
@Dogberto999
@Dogberto999 3 роки тому
9:45 - Yeah, denominator goes down (or on the bottom of the fraction). That's how I remembered it.
@unknownman5296
@unknownman5296 3 роки тому
thanks your videos are very useful !!!
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 3 роки тому
The video i have been waiting for
@yourboiivan
@yourboiivan 2 роки тому
Are you from kerala
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 2 роки тому
@@yourboiivan ye i am
@adityachoudhary1637
@adityachoudhary1637 3 роки тому
great video keep posting more videos like this😀
@Kvothestark26
@Kvothestark26 3 роки тому
I love your videos Tim😍😍
@akshitagarwal1309
@akshitagarwal1309 2 роки тому
What theme are you using in VSCode? Looks cool.
@dineshsen1807
@dineshsen1807 2 роки тому
Really helpful
@top5things968
@top5things968 5 місяців тому
Thank you 🎉
@rameshahparameswaraiah6908
@rameshahparameswaraiah6908 Рік тому
Well explained
@gmc9753
@gmc9753 3 роки тому
I thought a watchpoint is when the debugger stops when a variable changes or when it hits a certain value, or is watch and watchpoint different in VS code.
@doriboaz
@doriboaz 3 роки тому
Tim hi what about conditional break points usefull for convergence math and for loop analysis.
@user-vw3pr5gq9g
@user-vw3pr5gq9g 2 роки тому
Thank god I see this right now after finishing two homework...
@aanisnoor229
@aanisnoor229 2 роки тому
Thank you!
@rektm8141
@rektm8141 3 роки тому
love the videos tim
@TechWithTim
@TechWithTim 3 роки тому
:)
@sakman27cap45
@sakman27cap45 3 роки тому
It is cool to see live comments after reloading the page ;)
@bouloukosxontropoulos7436
@bouloukosxontropoulos7436 3 роки тому
Really great video !! By the way what font family are you using ? It's really good...especially how the def sticks out ! Is there a trick to do that?
@stefaandumez2319
@stefaandumez2319 2 роки тому
I have the same. Only thing I did is to use the Monokai color theme. You can check out if it works for you.
@DaniloSilva-pl3sq
@DaniloSilva-pl3sq 2 роки тому
Neat! Really spetacular.
@frankkevy
@frankkevy 2 роки тому
I finally understood it
@gidartsproduction5439
@gidartsproduction5439 3 роки тому
Please Tim, are you going to continue with the software you just mentioned previously about school management system or you were just giving us a quick foundation?
@TechWithTim
@TechWithTim 3 роки тому
I do plan on continuing it, just takes a while to film and code it all out
@t_tek760
@t_tek760 3 роки тому
Thanks 🙏
@chriszink5225
@chriszink5225 2 роки тому
Please do more of these
@gregoryfenn1462
@gregoryfenn1462 2 роки тому
How do you debug memory layout and system registers such as MMU registers and other CPU peripherals?
@josephputra2987
@josephputra2987 2 роки тому
Thanks😀
@kunalbhatt4333
@kunalbhatt4333 Рік тому
I started learning to code in 2015, better late than never!
@saisiddhartha5375
@saisiddhartha5375 4 місяці тому
The best thing that you could do
@TIMJR625
@TIMJR625 3 роки тому
Great video!
@TechWithTim
@TechWithTim 3 роки тому
Thanks!
@biblicallybased
@biblicallybased 3 роки тому
I seem to be having issues using the Flask debugger in VS Code where relative imports prevent the debugging from happening. What should I do?
@user-go1gt1hd2u
@user-go1gt1hd2u 7 місяців тому
How do you know if your phone is being tracked Tim?
@dennissanchez5171
@dennissanchez5171 2 роки тому
good stuff!
@basketballhightlight2430
@basketballhightlight2430 Рік тому
Super guide
@dinakhan4961
@dinakhan4961 Рік тому
i understand but, which extension I should download for debugging in vs code(python code)
@night23412
@night23412 2 роки тому
holy shit this is an invaluable video
@nhimaithiyen5820
@nhimaithiyen5820 3 місяці тому
🎯 Key Takeaways for quick navigation: 00:01 🐛 *Understanding Recursive Debugging in Visual Studio* - Debugging a recursive C program in Visual Studio: *- Demonstrating the step-by-step process of debugging a recursive function.* *- Observing variable values and breakpoints during each recursive call.* *- Highlighting the flow of control and variable changes through recursive function execution.* 03:06 🔄 *Understanding Recursion Flow Control* - Tracking the flow of control in a recursive function: *- Explaining the return and continuation of control after recursive calls.* *- Illustrating the retention of variable values within different scopes during recursive function execution.* *- Emphasizing the gradual modification of local and global variables during recursive calls.* 05:04 📊 *Variable Value Dynamics in Recursive Functions* - Analyzing variable value dynamics within recursive calls: *- Understanding how local variables (like 'n') maintain values across different function scopes.* *- Explaining the persistence and alteration of variable values through recursive function calls.* *- Emphasizing the distinction between local and global variable behaviors within recursive functions.* Made with HARPA AI
@luizfelipecastrocoelho9314
@luizfelipecastrocoelho9314 2 роки тому
DUDE! You have no idea how much of a lifesaver u r!!! And super cute as well!
@Tech_Eshwar
@Tech_Eshwar 10 місяців тому
Thanyou so much
@desislavaandreeva4359
@desislavaandreeva4359 3 роки тому
I had so many problems with the debugger in VSC...it was working fine a few weeks ago. After an update, it started playing up. I normally press F5 and then go through the code with F10...I checked the config file, I keep restarting the app and finally, I accept it to use it manually, I even raised a query to Microsoft and nothing, the case was closed automatically ... I hope you guys fix it soon.
@eliaslind4830
@eliaslind4830 3 роки тому
Thanks
@dasten123
@dasten123 2 роки тому
I wish I had seen a video like this back when I started programming. For many years I didn't use a debugger and that was just dumb
@basetroll1627
@basetroll1627 2 роки тому
Same here!
@lohwaiseng
@lohwaiseng Рік тому
MaY i know what happens if i enter a debugging mode of a unknown board assuming that I know wat the processor is, and I used the relevant tool to get into its debugging, what would I see in the IDE (programming interface software) ? Am I able to connect to the boards RAM & EPROM chip?
@karlnassar8646
@karlnassar8646 3 роки тому
What is the color theme he is using?
@therealosose
@therealosose 3 роки тому
The audio is really nice🔊🎤
@TechWithTim
@TechWithTim 3 роки тому
Thank you! Still need to do some tweaks but always working on making it better for you guys
@rahulpagidimarri4677
@rahulpagidimarri4677 2 роки тому
thanks
@vaeshethblade931
@vaeshethblade931 Рік тому
This is a decent tutorial for editing a known file, but when a program is dumping straight to memory, how can you find where it's going so you can debug it? I can hack the crap out of any file you give me, but I have a game that "hides" its files by placing markers in the save file and taking queues from memory in real time. Debugging is the answer to the problem, but I can't figure out how to locate the memory file I need to hack.
@hamadler2898
@hamadler2898 3 роки тому
friend can you do a tutorial on advanced socket programming in python?
@jhudk2d
@jhudk2d 3 роки тому
I have a python script that uses ArgumentParser(). How can I make the debugger run the code with some defined "input" as the argument to the parser? Sorry if it's a stupid question, I have started learning python recently and have no previous experience with programming either.
@jhudk2d
@jhudk2d 3 роки тому
Should I just manually define a default value? I answered myself :)
@chakibbounoun2349
@chakibbounoun2349 2 роки тому
thanks maan
@hamad5141
@hamad5141 3 роки тому
Please make a video on beginner projects we can do with golang
@Laci4465
@Laci4465 Рік тому
Is the code that you show/use here on Github?
Python Debugging (PyCharm + VS Code)
24:18
mCoding
Переглядів 32 тис.
VSCode Tutorial For Beginners - Getting Started With VSCode
22:57
Tech With Tim
Переглядів 782 тис.
Мама и дневник Зомби (часть 1)🧟 #shorts
00:47
Are you debugging JavaScript in VSCode? | YOU SHOULD!
7:06
Alex Ziskind
Переглядів 142 тис.
How to DEBUG C++ in VISUAL STUDIO
19:20
The Cherno
Переглядів 453 тис.
Debugging Like A Pro
5:48
ByteByteGo
Переглядів 91 тис.
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Переглядів 2,2 млн
you need to stop using print debugging (do THIS instead)
7:07
Low Level Learning
Переглядів 373 тис.
Mastering Python - Everything You Need To Know To Become a Python Master
16:02
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Переглядів 401 тис.
Debugging 101: Replace print() with icecream ic()
12:36
NeuralNine
Переглядів 337 тис.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Переглядів 404 тис.
Best Debugging Tips For Beginners
11:57
Web Dev Simplified
Переглядів 117 тис.