How to Use a Debugger - Debugger Tutorial

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 256

  • @TechWithTim
    @TechWithTim  4 года назад +71

    What tutorials do you want to see next?!

  • @dpskane
    @dpskane 4 года назад +154

    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

  • @Lazerbeam50
    @Lazerbeam50 4 года назад +45

    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 месяцев назад +2

    I remember watching your coding tutorials and stream and here I am 4 years later, back for some nostalgia.

  • @dhruvgupta3177
    @dhruvgupta3177 4 года назад +18

    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 года назад +1

      Nothing more annoying than a bad indentation -_-

    • @tempor8336
      @tempor8336 4 года назад +2

      Steven Cheung or mixing = and == searching for the error during 3 hours and then figuring it out.

  • @_sammy
    @_sammy 4 года назад +13

    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?

  • @matchalover08
    @matchalover08 3 месяца назад

    Finally I found some reliable debugging tutorial, I barely understood the other videos

  • @Raghav1205
    @Raghav1205 4 года назад +69

    Hey Tim could you do some advanced data structures stuff like graphs and graph algorithms and how to implement them

  • @Moonlight-jx2sj
    @Moonlight-jx2sj 3 года назад +41

    I think you missed the main part: how to set up the .json file for debugger.

    • @mariany4691
      @mariany4691 3 года назад +2

      It's usually very dependent on the language you're coding in

  • @datarobe
    @datarobe Год назад +1

    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 ). 😊

  • @servantofthelord8147
    @servantofthelord8147 Год назад +1

    I always used to ignore this part of the menu until today. 😂😂Thank you

  • @toreger2852
    @toreger2852 2 года назад +1

    Third video was the charm! Still the best ground-up explanation two years later :))

  • @MysteriousK69
    @MysteriousK69 4 года назад +28

    Would love to see Android game development

  • @Bennilenny
    @Bennilenny 4 года назад

    I knew about debugging but NOT ABOUT THE STEP BUTTON !! thanks, Tim.

  • @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

  • @umerselmani6799
    @umerselmani6799 4 года назад +2

    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.

  • @narfee7529
    @narfee7529 4 года назад +21

    I needed this! Thanks Tim 🙏

    • @TechWithTim
      @TechWithTim  4 года назад +5

      Glad it was helpful!

    • @tanmaydeshpande
      @tanmaydeshpande 4 года назад +1

      Same. Never figured out how to use a debugger before this vid.

    • @krishshah3974
      @krishshah3974 2 года назад

      @@tanmaydeshpande ikr

  • @hanweiz84
    @hanweiz84 3 года назад +1

    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!

  • @Dogberto999
    @Dogberto999 4 года назад +1

    9:45 - Yeah, denominator goes down (or on the bottom of the fraction). That's how I remembered it.

  • @pjc_codes
    @pjc_codes 15 дней назад

    Tim, thanks for all your great videos. They ve been really useful for me as a beginner! :)

  • @JamesTJoseph
    @JamesTJoseph 4 года назад +1

    Conditional breakpoint, it is helpful when looping through an iterable.

  • @kunalbhatt4333
    @kunalbhatt4333 Год назад

    I started learning to code in 2015, better late than never!

  • @johndavies729
    @johndavies729 3 года назад +5

    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

  • @himbary
    @himbary 3 года назад

    Thanks! No one talked about how it actually works

  • @hemanth6951
    @hemanth6951 4 года назад +2

    One of the best editor

  • @robosergTV
    @robosergTV 6 месяцев назад

    dude saved my ass at my job, thanks :)

  • @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

  • @客家饒舌執牛耳
    @客家饒舌執牛耳 3 года назад

    Thank god I see this right now after finishing two homework...

  • @anandmano4375
    @anandmano4375 3 года назад

    Excellent Sir... for the Best Tutorial on Debugging on VS code...

  • @MinecraftLetstime
    @MinecraftLetstime 4 года назад +2

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

  • @juliajulsen5623
    @juliajulsen5623 4 года назад +1

    Thanks for the video! I also find myself using the debug console in VS Code often. Extremely useful tool

  • @akshitagarwal1309
    @akshitagarwal1309 3 года назад +1

    What theme are you using in VSCode? Looks cool.

  • @databridgeconsultants9163
    @databridgeconsultants9163 4 года назад +3

    Thanks Tim . Your Videos are Superb . Atleast you make videos which are directly implementable in real life projects . Great Job man .

  • @peteedwards8439
    @peteedwards8439 Месяц назад

    How about a video on setting up the debugger environment in VSCode?

  • @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

  • @frankkevy
    @frankkevy 2 года назад +1

    I finally understood it

  • @shambhaviaggarwal9977
    @shambhaviaggarwal9977 4 года назад +46

    Sublime theme in vs code is really bothering me.

  • @satoshinakamoto171
    @satoshinakamoto171 4 года назад

    software design tutorial # 2? i really liked the first part. thanks

  • @superbroker.dxb007
    @superbroker.dxb007 2 года назад

    amazing amazing. You will go places my friend.

  • @Michael201078
    @Michael201078 Год назад

    Very good explanation. Thank you

  • @debjyotiray8364
    @debjyotiray8364 4 года назад

    Man, I take you as my role model; you are just too awesome at explanation

  • @dasten123
    @dasten123 2 года назад +1

    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

  • @premkatta1128
    @premkatta1128 10 месяцев назад

    Thanks, simple and useful video !

  • @himanshuagrawal2014
    @himanshuagrawal2014 2 года назад

    Excellent Video and thoroughly explained, Stay Blessed. Thank you so much.

  • @Lulit999
    @Lulit999 4 года назад +1

    I really like "run to cursor" option in PyCharm instead of putting a lot of breakpoints.

  • @hiteshpant9868
    @hiteshpant9868 4 года назад

    FABULOUS EXPLANATION... KEEP IT UP

  • @therealosose
    @therealosose 4 года назад +2

    I just needed this thanks tim!!

  • @mohammadahsan7873
    @mohammadahsan7873 10 месяцев назад

    Its really helpful. Thanks a lot. ❤

  • @cprooney
    @cprooney 2 года назад

    Good Tutorial.
    Move your pop filter farther away from your mic.

  • @georgitanev-w4b
    @georgitanev-w4b Год назад

    Great video Tim!

  • @sakman27cap45
    @sakman27cap45 4 года назад

    It is cool to see live comments after reloading the page ;)

  • @peterv3122
    @peterv3122 2 года назад

    This is a great video. Thanks Tim!

  • @Sumit-pl8rq
    @Sumit-pl8rq 3 года назад

    Thanks for this wonderful explanation.

  • @nachojimenez2420
    @nachojimenez2420 Год назад

    good vid. I think the "house shaped thing" is sideways which is kinda like an arrow.

  • @vaeshethblade931
    @vaeshethblade931 2 года назад +1

    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.

  • @pampagrimaldi8584
    @pampagrimaldi8584 2 года назад

    very clearylt explained Tim, thank you very much!

  • @krishj8011
    @krishj8011 3 месяца назад

    Awesome Tutorial...

  • @saminchowdhury7995
    @saminchowdhury7995 3 года назад

    Thank you so much master
    This was very helpful

  • @marytavakoli3692
    @marytavakoli3692 2 года назад +1

    I learned a lot, as always

  • @adityaroshan1688
    @adityaroshan1688 2 года назад

    What a fantastic tutorial

  • @khangthaitran
    @khangthaitran 2 года назад

    Very informative video! Thanks!

  • @therealosose
    @therealosose 4 года назад +1

    The audio is really nice🔊🎤

    • @TechWithTim
      @TechWithTim  4 года назад +2

      Thank you! Still need to do some tweaks but always working on making it better for you guys

  • @AliAliOxenFree
    @AliAliOxenFree Год назад

    great video. clear, concise and to the point. no extra fluff. earned a sub!

  • @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.

  • @saxsafon
    @saxsafon 4 года назад

    Thanks, Tim! Just in time

  • @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.

  • @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

  • @luizfelipecastrocoelho9314
    @luizfelipecastrocoelho9314 3 года назад

    DUDE!
    You have no idea how much of a lifesaver u r!!! And super cute as well!

  • @chriszink5225
    @chriszink5225 3 года назад

    Please do more of these

  • @grandpaK420
    @grandpaK420 4 года назад +1

    What is the color theme he is using?

  • @pythonmacho9954
    @pythonmacho9954 4 года назад +1

    your thumbnail looks very attractive

  • @darkequinox4197
    @darkequinox4197 4 года назад +2

    U should do ur intro like this "Hello everyone i am back with the best video like everyday ;) " This is the truth

  • @ianbortnic2960
    @ianbortnic2960 2 года назад

    This was so useful!

  • @unknownman5296
    @unknownman5296 4 года назад

    thanks your videos are very useful !!!

  • @dinakhan4961
    @dinakhan4961 2 года назад

    i understand but, which extension I should download for debugging in vs code(python code)

  • @hamad5141
    @hamad5141 4 года назад

    Please make a video on beginner projects we can do with golang

  • @rameshahparameswaraiah6908
    @rameshahparameswaraiah6908 2 года назад

    Well explained

  • @abhinavkuruvilajoseph9274
    @abhinavkuruvilajoseph9274 4 года назад +1

    The video i have been waiting for

  • @ab-zg8pt
    @ab-zg8pt 2 года назад +2

    info starts at 4:40

  • @jailnet
    @jailnet 4 года назад +6

    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 года назад +1

      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 года назад +2

      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.

  • @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.

  • @Ronald-s6Ronald__s9
    @Ronald-s6Ronald__s9 4 месяца назад

    Cash is returning to your pocket-notification

  • @sagarganiga3417
    @sagarganiga3417 10 месяцев назад

    when i click on debugging only 2 options are available that is pause and restart. rest are not accesible

  • @hamadler2898
    @hamadler2898 4 года назад

    friend can you do a tutorial on advanced socket programming in python?

  • @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 года назад +2

      I do plan on continuing it, just takes a while to film and code it all out

  • @SAsquirtle
    @SAsquirtle 3 года назад

    holy shit this is an invaluable video

  • @qorbanimaq
    @qorbanimaq 4 года назад

    Really helpful! Thank you, Tim.

  • @TIMJR625
    @TIMJR625 4 года назад +1

    Great video!

  • @kapilgupta4674
    @kapilgupta4674 3 года назад

    How to use debugger when working with multiple applications in project in VS code....Plz elp

  • @user-wc1sm8cj8s
    @user-wc1sm8cj8s 3 года назад

    extremely helpful!!!!! thanks!!!

  • @Donna___9atc
    @Donna___9atc 4 месяца назад

    Poetically, behold the confirmation of the ethereal journey of funds from the bank to your Visa/Mastercard card.

  • @Tarragen
    @Tarragen 4 года назад

    thanks i needed this

  • @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 3 года назад

      I have the same. Only thing I did is to use the Monokai color theme. You can check out if it works for you.

  • @mrpancakes
    @mrpancakes 4 года назад +1

    Thank you for this

  • @adityachoudhary1637
    @adityachoudhary1637 4 года назад

    great video keep posting more videos like this😀

  • @rektm8141
    @rektm8141 4 года назад +1

    love the videos tim

  • @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?

  • @Kvothestark26
    @Kvothestark26 4 года назад

    I love your videos Tim😍😍

  • @paramjangale5549
    @paramjangale5549 4 года назад

    Really helpful!!

  • @Carol-s6Carol_n
    @Carol-s6Carol_n 4 месяца назад

    Peek into the crystal ball: Binance CEO’s exclusive interview about future developments