Debugging C/C++ with LLDB Tutorial

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 66

  • @sumantkalra9001
    @sumantkalra9001 2 роки тому +6

    This tutorial is so elegant that it forced me to write my first comment on youtube. Thanks.

  • @jayhanjaelee
    @jayhanjaelee Рік тому

    Great video. Thank you!

  • @shawnxihaowu7638
    @shawnxihaowu7638 Рік тому

    Thank you so much for this video! Super helpful!!

  • @yyangdid
    @yyangdid 3 роки тому

    Very useful video, thank you!

  • @Tachiguro
    @Tachiguro Рік тому

    Thanks a lot!!!

  • @lakshyarajsinghrathore1902
    @lakshyarajsinghrathore1902 3 роки тому

    whenever I try to set a break point it shows no locations (pending) and have tried every solution i could have but nothing is working

  • @utm13n
    @utm13n 2 роки тому +10

    I've been surfing through lldb videos looking for a concise intro, and yours is the best I've come across. Thanks for putting this together! As c++ beginner, I can see how valuable knowing how to use a debugger will be the learning process. If you're feeling ambitious, I'd certainly appreciate any intro c++ videos you might put together.

  •  5 місяців тому +2

    Great tutorial! It is not only a good lldb tutorial, but it is also a good general debugging overview for newcomers.

  • @yusuf3728
    @yusuf3728 3 роки тому +4

    Amazing tutorial, no nonsense words. 40 mins passed like 10 mins. Thank you so much

  • @sortof3337
    @sortof3337 Рік тому

    Very good video. I've started getting into c again for fun and looking to refresh my lldb/gdb knowledge. THanks
    Hey, can we get access to those slides?

  • @eduardovelardepolar5754
    @eduardovelardepolar5754 2 роки тому +1

    Great video, thanks a lot

  • @constant3130
    @constant3130 3 роки тому +4

    The best introduction to lldb I have seen so far - and I have been desperatly looking for one, believe me! Thank you for making it !

  • @javipy2731
    @javipy2731 Рік тому

    is it possible to debug an application that consists of multiple processess and/or multiple threads, with lldb relatively easy?

  • @illyay1337
    @illyay1337 3 роки тому +2

    I've been debugging with IDE's all my life and I found myself having no choice but to debug from a terminal. This was super helpful. I'm suddenly a more 1337 coder all of a sudden.

  • @TinaPhillips-b1h
    @TinaPhillips-b1h 22 дні тому

    Wilson Kimberly Moore Jennifer Lee Linda

  • @walid4588
    @walid4588 2 роки тому

    Thank you for this tutorial. this is very helpful.

  • @rajupadhyay694
    @rajupadhyay694 8 місяців тому

    How do one find proper segmentation error in lldb
    I use mac

  • @zu1191
    @zu1191 2 роки тому

    This is fucking good
    BTW where is 2nd video????????

  • @tutorialstube9587
    @tutorialstube9587 3 роки тому +1

    This tutorial is great. Can you please make more videos debugging c++ with lldb? Thanks.

  • @kiokunoroi7854
    @kiokunoroi7854 3 роки тому +1

    This is some GOOD quality tutorial video!
    I've never been more thankful to someone.
    Really THANK YOU for the detailed clean tutorial

  • @艾曦-e4g
    @艾曦-e4g 2 роки тому

    Great video, and looking forward for the part2. LOL!

  • @oleksasirotinin1532
    @oleksasirotinin1532 Рік тому

    beautiful explanation. thank you very much!

  • @deep2mixer
    @deep2mixer Рік тому

    Excellent tutorial ..thanks

  • @jasonhe6947
    @jasonhe6947 Рік тому

    Thanks for making this great tutorial. It helps a lot to get into this topic. Def want to see a more in-depth video of this topic.

  • @vinnar1
    @vinnar1 3 роки тому +1

    Really helpful. Thanks for your time and effort.

  • @shengguangxiao1452
    @shengguangxiao1452 Рік тому

    Good and clear explanation

  • @moviesynopsis001
    @moviesynopsis001 9 місяців тому

    Is it possible to be as efficient in terminal lldb as a gui based debugger? To me it just seems annoying having to prompt everytime where as something like visual studio displays all the information while your stepping through.

    • @Andre-LA
      @Andre-LA 6 місяців тому

      Use the "gui" command

    • @constref1983
      @constref1983  23 дні тому +1

      Nah, its good to know if you need to use it, but I use Visual Studio 95% of the time, and hop into Qt Creator from time to time. You can certainly get pretty speedy with LLDB in the terminal, but setting breakpoints, hopping around the call stack and inspecting is definitely going to be far quicker and easier using a GUI. Back when I thought I was cool because I didn't use an IDE, and ran LLDB in a terminal window, I always knew in the back of my head that I was objectively being inefficient, just so that I could feel like I'm somehow coding more old-school. Some people will be like "IDEs are slow", but that is only true on startup. I mostly use Visual Studio, and while it definitely takes more time to start up, once your project is open and you're coding, compiling and debugging in a cycle, its certainly quicker in the IDE, especially debugging. Anybody that tells you that they are faster when they alt-tab around between Vim, LLDBing via commands or staring at non-syntax-highlighted code are just lying. Something that really inspired me to not be a dork and focus on being productive was listening to John Carmack on Lex Fridman's podcast, particularly his answer when asked about Emacs vs Vim, and preferred editor.

  • @jakubstepien7257
    @jakubstepien7257 3 роки тому

    It is a pity that the automatic translation of subtitles into Polish does not work here.

  • @teC5
    @teC5 Рік тому

    perfect explanation, clear and to the point. Ran into some regression in my usual gui based debugger and this helped me continue on.

  • @nex7268
    @nex7268 Рік тому

    thx it helps a lot🙂🙂

  • @psmdream
    @psmdream 3 роки тому +1

    Thanks a lot for your video.

  • @JamesTJoseph
    @JamesTJoseph Рік тому

    Thank you

  • @jinhopark3671
    @jinhopark3671 3 роки тому

    Thank you so much! It was very helpful with all the details and examples.

  • @90125iahg
    @90125iahg Рік тому

    very useful

  • @shawnswanson7721
    @shawnswanson7721 3 роки тому

    Very informative video. Thanks. Any chance you know how "gui" command works with lldb?

  • @Ethan-po8ji
    @Ethan-po8ji 2 роки тому

    This is nice!

  • @SonarSystemsCoUk
    @SonarSystemsCoUk 3 роки тому

    Interesting stuff

  • @jantonisito
    @jantonisito 2 роки тому

    It was quite useful - I just started using LLDB and it was great beginner level pedestrian tutorial. Definitely see the value in learning LLDB. You may show the full code a bit earlier in the video. Also on watchpoints - they become disabled if you restart the process - would be nice to know how to re-enable them. Thanks!

  • @davidthai7144
    @davidthai7144 3 роки тому

    At 17:35, what does the $ mean in $2 = 0.
    And why does it change to $3 at 17:52?
    It's still referring to the same variable.

    • @philperry6564
      @philperry6564 Рік тому

      I think that's the evaluated expression of the variable at a given frame.

    • @davidthai7144
      @davidthai7144 Рік тому

      @@philperry6564 Finally, a reply to an answer that I needed over a year ago!

  • @lethality3704
    @lethality3704 Рік тому

    such good quality video, you deserve more subscriber bro!

  • @kombaimusiclab3699
    @kombaimusiclab3699 2 роки тому

    Nice work, you go straight to the point with a great example. Thank you for this tutorial.

  • @meharpreetsinghnanda6682
    @meharpreetsinghnanda6682 3 роки тому

    Amazing tutorial for getting started with lldb

  • @samuelmartin7319
    @samuelmartin7319 2 роки тому

    This video was great! Thank you!

  • @GlobalYoung7
    @GlobalYoung7 2 роки тому

    Thank you 🙏 ❤️

  • @shashanksharma21
    @shashanksharma21 3 роки тому

    thanks for the very informative video !

  • @arlotetxu
    @arlotetxu Рік тому

    Nice tutorial!! Really helpfull and valuable!!

  • @ne_bknnlive3920
    @ne_bknnlive3920 3 роки тому

    Thanks

  • @runasand
    @runasand 3 роки тому

    This is really helpful, thank you! Are you planning a Part 2 still?

    • @eastonbenson4495
      @eastonbenson4495 3 роки тому

      i know im asking the wrong place but does anyone know a trick to log back into an Instagram account??
      I was stupid forgot the login password. I love any tricks you can offer me!

    • @raylansamuel8174
      @raylansamuel8174 3 роки тому

      @Easton Benson instablaster =)

    • @eastonbenson4495
      @eastonbenson4495 3 роки тому

      @Raylan Samuel thanks so much for your reply. I found the site on google and Im trying it out atm.
      I see it takes quite some time so I will get back to you later with my results.

    • @eastonbenson4495
      @eastonbenson4495 3 роки тому

      @Raylan Samuel It worked and I actually got access to my account again. I am so happy!
      Thanks so much you saved my ass !

    • @raylansamuel8174
      @raylansamuel8174 3 роки тому

      @Easton Benson You are welcome :)

  • @DaPsychocat
    @DaPsychocat 3 роки тому

    I'm suing lldb on ubuntuX and it doesn't look like that at all, everything is displayed as function_name + X, making it extremely difficult to interpret. Does someone know why it does that and how I can correct it ?

    • @NickEnchev
      @NickEnchev 3 роки тому

      Have you made sure your code is compiled for debugging? Maybe your debug symbols are not enabled. What compiler and build system are you using?

  • @ali51717
    @ali51717 3 роки тому

    This is a very nice lightweight introduction to lldb.
    Thanks

  • @raiyanreza9764
    @raiyanreza9764 3 роки тому

    hi where the powerpoint?