How to Use a Debugger - Debugger Tutorial

  Рет қаралды 322,987

Tech With Tim

Tech With Tim

Күн бұрын

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.visualstu...
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
🔊 Subscribe to my second channel for weekly podcasts! / @timeoutwithtim
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: tech-with-tim....
👕 Merchandise: teespring.com/...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/tec...
🔊 Podcast: anchor.fm/tech...
🎬 My KZbin 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...
💰 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

Пікірлер: 255
@TechWithTim
@TechWithTim 4 жыл бұрын
What tutorials do you want to see next?!
@therealosose
@therealosose 4 жыл бұрын
Projects you can do with golang
@simonboteroaristizabal687
@simonboteroaristizabal687 4 жыл бұрын
How to use PyCharm in an advanced way
@simonboteroaristizabal687
@simonboteroaristizabal687 4 жыл бұрын
Or how to code a pygame game for mobile!! Should be complex enough and very cool
@gidartsproduction5439
@gidartsproduction5439 4 жыл бұрын
School management system software tutorial_02
@EAU183
@EAU183 4 жыл бұрын
An efficient way to use EMACS as a IDE.
@dpskane
@dpskane 4 жыл бұрын
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 4 жыл бұрын
This is easily one of the most useful programming skills I've ever learned. Thank you so much for explaining everything so clearly!
@mandem5176
@mandem5176 8 ай бұрын
I remember watching your coding tutorials and stream and here I am 4 years later, back for some nostalgia.
@dhruvgupta3177
@dhruvgupta3177 4 жыл бұрын
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 4 жыл бұрын
Nothing more annoying than a bad indentation -_-
@tempor8336
@tempor8336 4 жыл бұрын
Steven Cheung or mixing = and == searching for the error during 3 hours and then figuring it out.
@matchalover08
@matchalover08 2 ай бұрын
Finally I found some reliable debugging tutorial, I barely understood the other videos
@toreger2852
@toreger2852 Жыл бұрын
Third video was the charm! Still the best ground-up explanation two years later :))
@TechWithTim
@TechWithTim Жыл бұрын
Glad it was helpful!
@narfee7529
@narfee7529 4 жыл бұрын
I needed this! Thanks Tim 🙏
@TechWithTim
@TechWithTim 4 жыл бұрын
Glad it was helpful!
@tanmaydeshpande
@tanmaydeshpande 4 жыл бұрын
Same. Never figured out how to use a debugger before this vid.
@krishshah3974
@krishshah3974 2 жыл бұрын
@@tanmaydeshpande ikr
@Bennilenny
@Bennilenny 4 жыл бұрын
I knew about debugging but NOT ABOUT THE STEP BUTTON !! thanks, Tim.
@_sammy
@_sammy 4 жыл бұрын
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 😅
@RahulRaj-jc7os
@RahulRaj-jc7os 2 ай бұрын
hey can you please suggest a tutorial for the same?
@Raghav1205
@Raghav1205 4 жыл бұрын
Hey Tim could you do some advanced data structures stuff like graphs and graph algorithms and how to implement them
@databridgeconsultants9163
@databridgeconsultants9163 4 жыл бұрын
Thanks Tim . Your Videos are Superb . Atleast you make videos which are directly implementable in real life projects . Great Job man .
@hanweiz84
@hanweiz84 3 жыл бұрын
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!
@servantofthelord8147
@servantofthelord8147 Жыл бұрын
I always used to ignore this part of the menu until today. 😂😂Thank you
@juliajulsen5623
@juliajulsen5623 4 жыл бұрын
Thanks for the video! I also find myself using the debug console in VS Code often. Extremely useful tool
@hemanth6951
@hemanth6951 4 жыл бұрын
One of the best editor
@MysteriousK69
@MysteriousK69 4 жыл бұрын
Would love to see Android game development
@Moonlight-jx2sj
@Moonlight-jx2sj 3 жыл бұрын
I think you missed the main part: how to set up the .json file for debugger.
@mariany4691
@mariany4691 3 жыл бұрын
It's usually very dependent on the language you're coding in
@mizel_almizel
@mizel_almizel 3 жыл бұрын
I’m not speaking English but you are the best you never lies u tech me something that I need thank you bro
@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 ). 😊
@anandmano4375
@anandmano4375 3 жыл бұрын
Excellent Sir... for the Best Tutorial on Debugging on VS code...
@robosergTV
@robosergTV 6 ай бұрын
dude saved my ass at my job, thanks :)
@superbroker.dxb007
@superbroker.dxb007 2 жыл бұрын
amazing amazing. You will go places my friend.
@AliAliOxenFree
@AliAliOxenFree Жыл бұрын
great video. clear, concise and to the point. no extra fluff. earned a sub!
@johndavies729
@johndavies729 3 жыл бұрын
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
@kunalbhatt4333
@kunalbhatt4333 Жыл бұрын
I started learning to code in 2015, better late than never!
@saisiddhartha5375
@saisiddhartha5375 11 ай бұрын
The best thing that you could do
@debjyotiray8364
@debjyotiray8364 4 жыл бұрын
Man, I take you as my role model; you are just too awesome at explanation
@therealosose
@therealosose 4 жыл бұрын
I just needed this thanks tim!!
@himbary
@himbary 3 жыл бұрын
Thanks! No one talked about how it actually works
@pampagrimaldi8584
@pampagrimaldi8584 2 жыл бұрын
very clearylt explained Tim, thank you very much!
@peterv3122
@peterv3122 Жыл бұрын
This is a great video. Thanks Tim!
@JamesTJoseph
@JamesTJoseph 4 жыл бұрын
Conditional breakpoint, it is helpful when looping through an iterable.
@Michael201078
@Michael201078 Жыл бұрын
Very good explanation. Thank you
@premkatta1128
@premkatta1128 9 ай бұрын
Thanks, simple and useful video !
@Dogberto999
@Dogberto999 4 жыл бұрын
9:45 - Yeah, denominator goes down (or on the bottom of the fraction). That's how I remembered it.
@himanshuagrawal2014
@himanshuagrawal2014 2 жыл бұрын
Excellent Video and thoroughly explained, Stay Blessed. Thank you so much.
@nhimaithiyen5820
@nhimaithiyen5820 10 ай бұрын
🎯 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
@hiteshpant9868
@hiteshpant9868 4 жыл бұрын
FABULOUS EXPLANATION... KEEP IT UP
@woltron4o
@woltron4o Жыл бұрын
Great video Tim!
@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
@umerselmani6799
@umerselmani6799 4 жыл бұрын
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.
@Sumit-pl8rq
@Sumit-pl8rq 3 жыл бұрын
Thanks for this wonderful explanation.
@mohammadahsan7873
@mohammadahsan7873 10 ай бұрын
Its really helpful. Thanks a lot. ❤
@qorbanimaq
@qorbanimaq 4 жыл бұрын
Really helpful! Thank you, Tim.
@akshitagarwal1309
@akshitagarwal1309 3 жыл бұрын
What theme are you using in VSCode? Looks cool.
@frankkevy
@frankkevy 2 жыл бұрын
I finally understood it
@krishj8011
@krishj8011 3 ай бұрын
Awesome Tutorial...
@marytavakoli3692
@marytavakoli3692 2 жыл бұрын
I learned a lot, as always
@客家饒舌執牛耳
@客家饒舌執牛耳 3 жыл бұрын
Thank god I see this right now after finishing two homework...
@shambhaviaggarwal9977
@shambhaviaggarwal9977 4 жыл бұрын
Sublime theme in vs code is really bothering me.
@khangthaitran
@khangthaitran 2 жыл бұрын
Very informative video! Thanks!
@saxsafon
@saxsafon 4 жыл бұрын
Thanks, Tim! Just in time
@adityaroshan1688
@adityaroshan1688 2 жыл бұрын
What a fantastic tutorial
@saminchowdhury7995
@saminchowdhury7995 3 жыл бұрын
Thank you so much master This was very helpful
@TechWithTim
@TechWithTim 3 жыл бұрын
Glad it helped!
@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!
@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
@therealosose
@therealosose 4 жыл бұрын
The audio is really nice🔊🎤
@TechWithTim
@TechWithTim 4 жыл бұрын
Thank you! Still need to do some tweaks but always working on making it better for you guys
@sakman27cap45
@sakman27cap45 4 жыл бұрын
It is cool to see live comments after reloading the page ;)
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 4 жыл бұрын
The video i have been waiting for
@theseusRJ7
@theseusRJ7 3 жыл бұрын
Are you from kerala
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 3 жыл бұрын
@@theseusRJ7 ye i am
@unknownman5296
@unknownman5296 4 жыл бұрын
thanks your videos are very useful !!!
@ianbortnic2960
@ianbortnic2960 2 жыл бұрын
This was so useful!
@peteedwards8439
@peteedwards8439 Ай бұрын
How about a video on setting up the debugger environment in VSCode?
@rameshahparameswaraiah6908
@rameshahparameswaraiah6908 2 жыл бұрын
Well explained
@satoshinakamoto171
@satoshinakamoto171 4 жыл бұрын
software design tutorial # 2? i really liked the first part. thanks
@chriszink5225
@chriszink5225 3 жыл бұрын
Please do more of these
@adityachoudhary1637
@adityachoudhary1637 4 жыл бұрын
great video keep posting more videos like this😀
@mrpancakes
@mrpancakes 4 жыл бұрын
Thank you for this
@luizfelipecastrocoelho9314
@luizfelipecastrocoelho9314 3 жыл бұрын
DUDE! You have no idea how much of a lifesaver u r!!! And super cute as well!
@vaeshethblade931
@vaeshethblade931 2 жыл бұрын
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.
@rektm8141
@rektm8141 4 жыл бұрын
love the videos tim
@TechWithTim
@TechWithTim 4 жыл бұрын
:)
@MinecraftLetstime
@MinecraftLetstime 4 жыл бұрын
This will sound weird, but I think using the debugger or at least relying too much on it is not good. If you don’t use the debugger you will force yourself to understand the code better and trace it in your head and figure it out that way, which in the long term will also stop you making more bugs and you will find bugs much faster, because you know the code so well... Just my opinion...
@bouloukosxontropoulos7436
@bouloukosxontropoulos7436 4 жыл бұрын
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.
@gidartsproduction5439
@gidartsproduction5439 4 жыл бұрын
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 4 жыл бұрын
I do plan on continuing it, just takes a while to film and code it all out
@piotrmazgaj
@piotrmazgaj 2 ай бұрын
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
@pythonmacho9954
@pythonmacho9954 4 жыл бұрын
your thumbnail looks very attractive
@TechWithTim
@TechWithTim 4 жыл бұрын
Thank you!
@pythonmacho9954
@pythonmacho9954 4 жыл бұрын
@@TechWithTim joined your discord server
@user-wc1sm8cj8s
@user-wc1sm8cj8s 3 жыл бұрын
extremely helpful!!!!! thanks!!!
@BeijingCornDealer
@BeijingCornDealer 4 жыл бұрын
thanks i needed this
@TIMJR625
@TIMJR625 4 жыл бұрын
Great video!
@TechWithTim
@TechWithTim 4 жыл бұрын
Thanks!
@ab-zg8pt
@ab-zg8pt 2 жыл бұрын
info starts at 4:40
@dinakhan4961
@dinakhan4961 2 жыл бұрын
i understand but, which extension I should download for debugging in vs code(python code)
@Kvothestark26
@Kvothestark26 4 жыл бұрын
I love your videos Tim😍😍
@grandpaK420
@grandpaK420 3 жыл бұрын
What is the color theme he is using?
@Laci4465
@Laci4465 2 жыл бұрын
Is the code that you show/use here on Github?
@paramjangale5549
@paramjangale5549 4 жыл бұрын
Really helpful!!
@darkequinox4197
@darkequinox4197 4 жыл бұрын
U should do ur intro like this "Hello everyone i am back with the best video like everyday ;) " This is the truth
@hamadler2898
@hamadler2898 4 жыл бұрын
ふざけんな。
@cprooney
@cprooney 2 жыл бұрын
Good Tutorial. Move your pop filter farther away from your mic.
@Ronald-s6Ronald__s9
@Ronald-s6Ronald__s9 3 ай бұрын
Cash is returning to your pocket-notification
@dineshsen1807
@dineshsen1807 3 жыл бұрын
Really helpful
@top5things968
@top5things968 11 ай бұрын
Thank you 🎉
@samsunggalaxyj7816
@samsunggalaxyj7816 Жыл бұрын
Where we can see the output and where we can input something?
@Lulit999
@Lulit999 4 жыл бұрын
I really like "run to cursor" option in PyCharm instead of putting a lot of breakpoints.
@aanisnoor229
@aanisnoor229 2 жыл бұрын
Thank you!
@jailnet
@jailnet 4 жыл бұрын
Man, i'm trying to fit learning python into my schedule, but im finding it difficult to find a balance between study and python 🤷🙍
@siyam.88
@siyam.88 4 жыл бұрын
I would say that if you don't get enough time to code that's not a big problem, be consistent to it, code everyday even for 20 minutes, learn a new topic each day.
@adityachoudhary1637
@adityachoudhary1637 4 жыл бұрын
i would advice you to watch plenty of videos for python on youtube or any learning source you can find, rest would be easy. you can make your task easier by listing what skills you want to learn in python and move step by step
@adityachoudhary1637
@adityachoudhary1637 4 жыл бұрын
each day watch 2 videos for topic you decided for yourself not more than that your interest will carry you rest of the way😀
@FalseDev
@FalseDev 4 жыл бұрын
Just study python then..... 😁
@umerselmani6799
@umerselmani6799 4 жыл бұрын
My advice would be, if you can do 30 mins a day as a starter, it would be really good/enough imo. Though the best what you can do is actually getting yourself into coding. I use the phrase "getting your hands dirty with programming" meaning, when you start to write code, you really will get the idea and the meaning of each line of code you write. And also take notes, sometimes write the pieces of code in a paper too, in my nation they say, writing is equal to 10 readings, so your memory will be better in remembering things you write down. Attention: ONLY watching KZbin videos or reading books without applying the knowledge, will be no much of benefit, and the best way is, doing them (watching and writing) as simultaneously as possible.
@sagarganiga3417
@sagarganiga3417 9 ай бұрын
when i click on debugging only 2 options are available that is pause and restart. rest are not accesible
@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?
@gmc9753
@gmc9753 4 жыл бұрын
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.
@SAsquirtle
@SAsquirtle 2 жыл бұрын
holy shit this is an invaluable video
@kapilgupta4674
@kapilgupta4674 3 жыл бұрын
How to use debugger when working with multiple applications in project in VS code....Plz elp
@PeterConlon-v2l
@PeterConlon-v2l Жыл бұрын
How do you know if your phone is being tracked Tim?
@basketballhightlight2430
@basketballhightlight2430 Жыл бұрын
Super guide
VSCode Tutorial For Beginners - Getting Started With VSCode
22:57
Tech With Tim
Рет қаралды 884 М.
Everything You Need to Know about Debugging in VSCode
7:02
ArjanCodes
Рет қаралды 41 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,9 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 17 МЛН
How To Practice Programming So You Actually Get Good
15:46
Tech With Tim
Рет қаралды 190 М.
How to DEBUG C++ in VISUAL STUDIO
19:20
The Cherno
Рет қаралды 482 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 432 М.
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,4 МЛН
I tried 10 code editors
10:28
Fireship
Рет қаралды 3,1 МЛН
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Debugging Like A Pro
5:48
ByteByteGo
Рет қаралды 113 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
Top 18 Most Useful Python Modules
10:50
Tech With Tim
Рет қаралды 932 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 161 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,9 МЛН