How to Use a Debugger - Debugger Tutorial

  Рет қаралды 302,446

Tech With Tim

Tech With Tim

4 жыл бұрын

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 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/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

Пікірлер: 248
@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 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!
@Raghav1205
@Raghav1205 4 жыл бұрын
Hey Tim could you do some advanced data structures stuff like graphs and graph algorithms and how to implement them
@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.
@mandem5176
@mandem5176 5 ай бұрын
I remember watching your coding tutorials and stream and here I am 4 years later, back for some nostalgia.
@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 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!
@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!
@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
@_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 😅
@therealosose
@therealosose 4 жыл бұрын
I just needed this thanks tim!!
@noe1448
@noe1448 2 жыл бұрын
Thank you so much for this video, so eloquent as usual !
@qorbanimaq
@qorbanimaq 4 жыл бұрын
Really helpful! Thank you, Tim.
@debjyotiray8364
@debjyotiray8364 4 жыл бұрын
Man, I take you as my role model; you are just too awesome at explanation
@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
@pampagrimaldi8584
@pampagrimaldi8584 2 жыл бұрын
very clearylt explained Tim, thank you very much!
@Bennilenny
@Bennilenny 4 жыл бұрын
I knew about debugging but NOT ABOUT THE STEP BUTTON !! thanks, Tim.
@MysteriousK69
@MysteriousK69 4 жыл бұрын
Would love to see Android game development
@peterv3122
@peterv3122 Жыл бұрын
This is a great video. Thanks Tim!
@toreger2852
@toreger2852 Жыл бұрын
Third video was the charm! Still the best ground-up explanation two years later :))
@TechWithTim
@TechWithTim Жыл бұрын
Glad it was helpful!
@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 ). 😊
@himanshuagrawal2014
@himanshuagrawal2014 2 жыл бұрын
Excellent Video and thoroughly explained, Stay Blessed. Thank you so much.
@saxsafon
@saxsafon 4 жыл бұрын
Thanks, Tim! Just in time
@premkatta1128
@premkatta1128 6 ай бұрын
Thanks, simple and useful video !
@Sumit-pl8rq
@Sumit-pl8rq 3 жыл бұрын
Thanks for this wonderful explanation.
@mohammadahsan7873
@mohammadahsan7873 7 ай бұрын
Its really helpful. Thanks a lot. ❤
@servantofthelord8147
@servantofthelord8147 Жыл бұрын
I always used to ignore this part of the menu until today. 😂😂Thank you
@marytavakoli3692
@marytavakoli3692 2 жыл бұрын
I learned a lot, as always
@khangthaitran
@khangthaitran 2 жыл бұрын
Very informative video! Thanks!
@hiteshpant9868
@hiteshpant9868 4 жыл бұрын
FABULOUS EXPLANATION... KEEP IT UP
@anandmano4375
@anandmano4375 3 жыл бұрын
Excellent Sir... for the Best Tutorial on Debugging on VS code...
@mrpancakes
@mrpancakes 4 жыл бұрын
Thank you for this
@unknownman5296
@unknownman5296 3 жыл бұрын
thanks your videos are very useful !!!
@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
@user-wc1sm8cj8s
@user-wc1sm8cj8s 3 жыл бұрын
extremely helpful!!!!! thanks!!!
@ianbortnic2960
@ianbortnic2960 2 жыл бұрын
This was so useful!
@BeijingCornDealer
@BeijingCornDealer 3 жыл бұрын
thanks i needed this
@krishj8011
@krishj8011 2 күн бұрын
Awesome Tutorial...
@Michael201078
@Michael201078 Жыл бұрын
Very good explanation. Thank you
@adityaroshan1688
@adityaroshan1688 2 жыл бұрын
What a fantastic tutorial
@woltron4o
@woltron4o Жыл бұрын
Great video Tim!
@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
@paramjangale5549
@paramjangale5549 3 жыл бұрын
Really helpful!!
@aanisnoor229
@aanisnoor229 2 жыл бұрын
Thank you!
@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.
@rameshahparameswaraiah6908
@rameshahparameswaraiah6908 2 жыл бұрын
Well explained
@saminchowdhury7995
@saminchowdhury7995 3 жыл бұрын
Thank you so much master This was very helpful
@TechWithTim
@TechWithTim 3 жыл бұрын
Glad it helped!
@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?
@hemanth6951
@hemanth6951 4 жыл бұрын
One of the best editor
@adityachoudhary1637
@adityachoudhary1637 4 жыл бұрын
great video keep posting more videos like this😀
@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
@top5things968
@top5things968 8 ай бұрын
Thank you 🎉
@himbary
@himbary 3 жыл бұрын
Thanks! No one talked about how it actually works
@robosergTV
@robosergTV 3 ай бұрын
dude saved my ass at my job, thanks :)
@superbroker.dxb007
@superbroker.dxb007 2 жыл бұрын
amazing amazing. You will go places my friend.
@JamesTJoseph
@JamesTJoseph 4 жыл бұрын
Conditional breakpoint, it is helpful when looping through an iterable.
@dineshsen1807
@dineshsen1807 2 жыл бұрын
Really helpful
@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?
@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
@Kvothestark26
@Kvothestark26 4 жыл бұрын
I love your videos Tim😍😍
@josephputra2987
@josephputra2987 2 жыл бұрын
Thanks😀
@dennissanchez5171
@dennissanchez5171 2 жыл бұрын
good stuff!
@basketballhightlight2430
@basketballhightlight2430 Жыл бұрын
Super guide
@satoshinakamoto171
@satoshinakamoto171 4 жыл бұрын
software design tutorial # 2? i really liked the first part. thanks
@karlnassar8646
@karlnassar8646 3 жыл бұрын
What is the color theme he is using?
@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.
@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.
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 4 жыл бұрын
The video i have been waiting for
@yourboiivan
@yourboiivan 3 жыл бұрын
Are you from kerala
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 3 жыл бұрын
@@yourboiivan ye i am
@dinakhan4961
@dinakhan4961 Жыл бұрын
i understand but, which extension I should download for debugging in vs code(python code)
@doriboaz
@doriboaz 4 жыл бұрын
Tim hi what about conditional break points usefull for convergence math and for loop analysis.
@gregoryfenn1462
@gregoryfenn1462 2 жыл бұрын
How do you debug memory layout and system registers such as MMU registers and other CPU peripherals?
@t_tek760
@t_tek760 4 жыл бұрын
Thanks 🙏
@frankkevy
@frankkevy 2 жыл бұрын
I finally understood it
@TIMJR625
@TIMJR625 4 жыл бұрын
Great video!
@TechWithTim
@TechWithTim 4 жыл бұрын
Thanks!
@Dogberto999
@Dogberto999 3 жыл бұрын
9:45 - Yeah, denominator goes down (or on the bottom of the fraction). That's how I remembered it.
@rektm8141
@rektm8141 4 жыл бұрын
love the videos tim
@TechWithTim
@TechWithTim 4 жыл бұрын
:)
@desislavaandreeva4359
@desislavaandreeva4359 4 жыл бұрын
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.
@DaniloSilva-pl3sq
@DaniloSilva-pl3sq 3 жыл бұрын
Neat! Really spetacular.
@akshitagarwal1309
@akshitagarwal1309 3 жыл бұрын
What theme are you using in VSCode? Looks cool.
@Tech_Eshwar
@Tech_Eshwar Жыл бұрын
Thanyou so much
@me_debankan4178
@me_debankan4178 2 жыл бұрын
why my array showing in int[8]@12 in variable part of debugger ?
@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
@sakman27cap45
@sakman27cap45 4 жыл бұрын
It is cool to see live comments after reloading the page ;)
@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.
@Laci4465
@Laci4465 Жыл бұрын
Is the code that you show/use here on Github?
@Lukas-zl5zs
@Lukas-zl5zs 3 жыл бұрын
Thanks
@jhudk2d
@jhudk2d 4 жыл бұрын
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 4 жыл бұрын
Should I just manually define a default value? I answered myself :)
@kunalbhatt4333
@kunalbhatt4333 Жыл бұрын
I started learning to code in 2015, better late than never!
@saisiddhartha5375
@saisiddhartha5375 8 ай бұрын
The best thing that you could do
@samsunggalaxyj7816
@samsunggalaxyj7816 11 ай бұрын
Where we can see the output and where we can input something?
@night23412
@night23412 2 жыл бұрын
holy shit this is an invaluable video
@user-vw3pr5gq9g
@user-vw3pr5gq9g 3 жыл бұрын
Thank god I see this right now after finishing two homework...
@sagarganiga3417
@sagarganiga3417 6 ай бұрын
when i click on debugging only 2 options are available that is pause and restart. rest are not accesible
@shambhaviaggarwal9977
@shambhaviaggarwal9977 4 жыл бұрын
Sublime theme in vs code is really bothering me.
@chriszink5225
@chriszink5225 3 жыл бұрын
Please do more of these
@chakibbounoun2349
@chakibbounoun2349 2 жыл бұрын
thanks maan
@Mo-tf9jb
@Mo-tf9jb 3 жыл бұрын
Can you also debugg functions that are called from another file? Let's say I have a module 1 with a function and import this function to module 2. Can the debugger jump into the function in module 1? Best
@n7s134
@n7s134 7 ай бұрын
yes it does that by default as of 16 dec 23
@kapilgupta4674
@kapilgupta4674 3 жыл бұрын
How to use debugger when working with multiple applications in project in VS code....Plz elp
@Ronald-s6Ronald__s9
@Ronald-s6Ronald__s9 19 күн бұрын
Cash is returning to your pocket-notification
VSCode Tutorial For Beginners - Getting Started With VSCode
22:57
Tech With Tim
Рет қаралды 831 М.
How To Debug Java Code The Right Way - Eclipse Debugger Full Tutorial
22:18
Это реально работает?!
00:33
БРУНО
Рет қаралды 4 МЛН
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 408 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 473 М.
Everything You Need to Know about Debugging in VSCode
7:02
ArjanCodes
Рет қаралды 30 М.
Python Debugging (PyCharm + VS Code)
24:18
mCoding
Рет қаралды 36 М.
God-Tier Developer Roadmap
16:42
Fireship
Рет қаралды 7 МЛН
How to DEBUG C++ in VISUAL STUDIO
19:20
The Cherno
Рет қаралды 469 М.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 622 М.
The 3 Laws of Writing Readable Code
5:28
Kantan Coding
Рет қаралды 451 М.
5 Mini Python Projects - For Beginners
1:41:08
Tech With Tim
Рет қаралды 2,8 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН