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
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 😅
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 ). 😊
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.
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!
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...
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
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.
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.
🎯 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
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.
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
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 RUclips 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.
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.
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?
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?
What tutorials do you want to see next?!
Projects you can do with golang
How to use PyCharm in an advanced way
Or how to code a pygame game for mobile!! Should be complex enough and very cool
School management system software tutorial_02
An efficient way to use EMACS as a IDE.
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
Thank you!
This is easily one of the most useful programming skills I've ever learned. Thank you so much for explaining everything so clearly!
I remember watching your coding tutorials and stream and here I am 4 years later, back for some nostalgia.
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
Nothing more annoying than a bad indentation -_-
Steven Cheung or mixing = and == searching for the error during 3 hours and then figuring it out.
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 😅
hey can you please suggest a tutorial for the same?
Finally I found some reliable debugging tutorial, I barely understood the other videos
Hey Tim could you do some advanced data structures stuff like graphs and graph algorithms and how to implement them
I think you missed the main part: how to set up the .json file for debugger.
It's usually very dependent on the language you're coding in
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 ). 😊
I always used to ignore this part of the menu until today. 😂😂Thank you
Third video was the charm! Still the best ground-up explanation two years later :))
Glad it was helpful!
Would love to see Android game development
I knew about debugging but NOT ABOUT THE STEP BUTTON !! thanks, Tim.
I’m not speaking English but you are the best you never lies u tech me something that I need thank you bro
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.
I needed this! Thanks Tim 🙏
Glad it was helpful!
Same. Never figured out how to use a debugger before this vid.
@@tanmaydeshpande ikr
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!
9:45 - Yeah, denominator goes down (or on the bottom of the fraction). That's how I remembered it.
Tim, thanks for all your great videos. They ve been really useful for me as a beginner! :)
Conditional breakpoint, it is helpful when looping through an iterable.
I started learning to code in 2015, better late than never!
The best thing that you could do
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
Thanks! No one talked about how it actually works
One of the best editor
dude saved my ass at my job, thanks :)
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
Thank god I see this right now after finishing two homework...
Excellent Sir... for the Best Tutorial on Debugging on VS code...
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...
Thanks for the video! I also find myself using the debug console in VS Code often. Extremely useful tool
What theme are you using in VSCode? Looks cool.
Thanks Tim . Your Videos are Superb . Atleast you make videos which are directly implementable in real life projects . Great Job man .
How about a video on setting up the debugger environment in VSCode?
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
I finally understood it
Sublime theme in vs code is really bothering me.
software design tutorial # 2? i really liked the first part. thanks
amazing amazing. You will go places my friend.
Very good explanation. Thank you
Man, I take you as my role model; you are just too awesome at explanation
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
Same here!
Thanks, simple and useful video !
Excellent Video and thoroughly explained, Stay Blessed. Thank you so much.
I really like "run to cursor" option in PyCharm instead of putting a lot of breakpoints.
FABULOUS EXPLANATION... KEEP IT UP
I just needed this thanks tim!!
Its really helpful. Thanks a lot. ❤
Good Tutorial.
Move your pop filter farther away from your mic.
Great video Tim!
It is cool to see live comments after reloading the page ;)
This is a great video. Thanks Tim!
Thanks for this wonderful explanation.
good vid. I think the "house shaped thing" is sideways which is kinda like an arrow.
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.
very clearylt explained Tim, thank you very much!
Awesome Tutorial...
Thank you so much master
This was very helpful
Glad it helped!
I learned a lot, as always
What a fantastic tutorial
Very informative video! Thanks!
The audio is really nice🔊🎤
Thank you! Still need to do some tweaks but always working on making it better for you guys
great video. clear, concise and to the point. no extra fluff. earned a sub!
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.
Thanks, Tim! Just in time
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.
🎯 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
DUDE!
You have no idea how much of a lifesaver u r!!! And super cute as well!
Please do more of these
What is the color theme he is using?
your thumbnail looks very attractive
Thank you!
@@TechWithTim joined your discord server
U should do ur intro like this "Hello everyone i am back with the best video like everyday ;) " This is the truth
ふざけんな。
This was so useful!
thanks your videos are very useful !!!
i understand but, which extension I should download for debugging in vs code(python code)
Please make a video on beginner projects we can do with golang
Well explained
The video i have been waiting for
Are you from kerala
@@theseusRJ7 ye i am
info starts at 4:40
Man, i'm trying to fit learning python into my schedule, but im finding it difficult to find a balance between study and python 🤷🙍
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.
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
each day watch 2 videos for topic you decided for yourself not more than that
your interest will carry you rest of the way😀
Just study python then..... 😁
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 RUclips 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.
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.
Cash is returning to your pocket-notification
when i click on debugging only 2 options are available that is pause and restart. rest are not accesible
friend can you do a tutorial on advanced socket programming in python?
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?
I do plan on continuing it, just takes a while to film and code it all out
holy shit this is an invaluable video
Really helpful! Thank you, Tim.
Great video!
Thanks!
How to use debugger when working with multiple applications in project in VS code....Plz elp
extremely helpful!!!!! thanks!!!
Poetically, behold the confirmation of the ethereal journey of funds from the bank to your Visa/Mastercard card.
thanks i needed this
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?
I have the same. Only thing I did is to use the Monokai color theme. You can check out if it works for you.
Thank you for this
great video keep posting more videos like this😀
love the videos tim
:)
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?
I love your videos Tim😍😍
Really helpful!!
Peek into the crystal ball: Binance CEO’s exclusive interview about future developments