CppCon 2018: Greg Law “Debugging Linux C++”

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

КОМЕНТАРІ •

  • @afigegoznaet
    @afigegoznaet 6 років тому +13

    I was really hoping for a new GDB video from Greg Law.
    This is exactly the kind of video I was expecting: here's what you can do and how you can do it, the practical approach video.
    Thanks!

  • @player-eric
    @player-eric Рік тому +1

    [Finished]
    As a beginner to C++, I found this video to be somewhat challenging. Although the speaker introduced several helpful commands like `gdb` and `rr`, in the examples of the video they produced too much output on the console for me to keep up with. As a result, I struggled to follow the speaker's actions at times. To help other beginners like myself, it might be useful for the author to slow down the pace of the video and add more annotations to make it easier to understand.

  • @ericcurtin2812
    @ericcurtin2812 6 років тому +17

    I prefer cgdb to gdb TUI mode. It has syntax highlighting and vim-like keybindings. And I find it's display doesn't get screwed up often like gdb TUI.

  •  6 років тому +1

    Excellent talk! Tons of useful hands on information.

  • @armaghanasghar2911
    @armaghanasghar2911 4 роки тому +1

    Can someone share the link to the presentation download. Can't find it on the github link.

  • @chg1464
    @chg1464 4 роки тому +1

    Seems the slide is missing from the git repo, is there a link to the slide of this presentation?

  • @User-cv4ee
    @User-cv4ee Рік тому

    Very nice! Please do one for Windows!

  • @dereklamberti6804
    @dereklamberti6804 6 років тому +3

    The fact that printf is ever the right tool.....is a pretty damning statement for the current state of debugging tools.

  • @gajop
    @gajop 6 років тому +7

    Interesting talk but I think I'll stick to IDEs like VS Code (which I think use gdb under the hood). Simply no way I can remember all this, and I don't want to think about my debugger text commands while I'm supposed to be thinking about the issue at hand. Same reason why I gave up on vim. Valgrind's and other dynamic or static analyzers are a great addition though.

  • @zhaoli2984
    @zhaoli2984 5 років тому

    fantastic, thank you.

  • @max0x7ba
    @max0x7ba 6 років тому

    `signal SIGINT` sends the signal from gdb to the process being debugged.

  • @IllumTheMessage
    @IllumTheMessage 6 років тому

    Super helpful!

  • @SimGunther
    @SimGunther 6 років тому

    There's always Qira (GeoHot's timeless debugger), which makes binary run time analysis so much easier to deal with when compared to gdb.

  • @DEXTER3
    @DEXTER3 5 років тому +1

    So.. what does this presentation have to do with C++ exactly? (apart from the title, and the one page he mentions pretty printers) IMO, this was 99,9% C and 0,1% C++ at best.

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo Рік тому

      Do you think gdb is solely a c debugger? 🤔
      The description makes it clear what the presentation is about.

  • @rishabhpuri6705
    @rishabhpuri6705 6 років тому

    fourth !

  • @Kricen
    @Kricen 6 років тому +4

    I almost never use debugger in C++ after I realized you actually have to follow OOP rules. Most important of them in C++ are ownership, constructor/destructor -rule and not using raw arrays. But you can already guess what 99% of programmers don't follow.

    • @YoloMonstaaa
      @YoloMonstaaa 4 роки тому +1

      I hope the intent of this comment wasn't to invalidate the talk. Some programs need things like raw arrays and avoid OOP for performance reasons. And if you value easy and safe code over complex and optimized code, maybe another safer language might be more appropriate.

  • @Voy2378
    @Voy2378 6 років тому +7

    GDB is terrible, I wish FLOSS people were not so much against charging/paying money for SW so that somebody would make a decent debugger...

    • @llothar68
      @llothar68 6 років тому +2

      The problem is the current state of software engineering with release often, release early. This makes it almost impossible to maintain software patches. Also customers for whatever reason always want to use the latest versions. And ignorance in the language/compiler team about the importance of debugging is another serious factor. Most people don't realize how important it is.
      I once maintained a ruby debugger (it would still be the best, 100 times faster then Komodo/Rubymine) but i had to give up.

    • @dorbie
      @dorbie 6 років тому +2

      try gdbui or pay for something like clion

  • @MrPDTaylor
    @MrPDTaylor 6 років тому +1

    First

    • @DatMilu2K
      @DatMilu2K 6 років тому

      Patrick TAYLOR wow guys look, an idiot below a cppcon video! :)