HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

CppCon 2015: Greg Law " Give me 15 minutes & I'll change your view of GDB"

CppCon6 HN recommenders · recommended in 6 months, 2018-2023
YouTube
271K views · 11 years ago · talk · evergreen

Greg Law's 15-minute CppCon 2015 lightning talk shows what GDB can do beyond basic use, including its text user interface and reverse debugging.

Recommended as a fast, brilliant introduction to GDB's TUI mode and lesser-known features, useful for anyone who has only used IDE debuggers.

Testing, debugging & developer toolsC, C++, Rust, Go & systems languages#gdb#debugging#tuimode#reversedebugging#c++

7 comments from Hacker News

@shortrounddev22023 · in “You Only Need a Tablet for Computer Science”

"You only need a tablet" (and remote infrastructure for actually writing your code on since a tablet won't work for 99% of assignments) I did the same thing in college, but with a Chromebook. I rented a VPS from Vultr and ssh'd in to write C and Java assignments with vim. VPS was $5/mo. Chromebooks can still write javascript code and run via the web browser, and you can actually mount a remote drive on a Chromebook (I think via sshfs?). From there you can use an electron based text editor like Atom (and I guess VSCode would work these days) and just compile and run programs via some SSH commands. I'll say anybody who wants to do the same thing with C should definitely check out GDB and its TUI mode: ▶ this video But I think these days, running a GUI application over a network has become trivial. Back then, I don't remember any providers making it simple to deploy such projects

RecommendsView on HN
@skywal_l2022 · in “Hacked GDB Dashboard Puts It All on Display”

Nice! There is already a TUI in gdb albeit not as good looking. For more info, there is a quick talk about it and other niceties that you may not know about: ▶ this video

RecommendsView on HN
@slavik812022 · in “Debugging with GDB”

I'd also recommend "Give me 15 minutes and I'll change your view of GDB" [1] by Greg Law at CppCon 2015. As someone who wasn't very familiar with GDB, I learned a lot from seeing it used by someone skilled. [1]: ▶ this video

RecommendsView on HN
@flukus2021 · in “55,000 lines of Rust code later: A debugger is born”

> So anything like this on Linux sounds like a very positive step forward. GDB has had reverse debugging since 2009 and there are other tools like rr and a few commercial ones. If anything I'd say that you calling it time travel debugging instead of reverse debugging demonstrates how insular the windows developer world is more than the windows platform being ignored. A great demonstration is in the video "Give Me 15 minutes and I'll change your view of GDB": ▶ this video

RecommendsView on HN
@flukus2019 · in “Why Vi Rocks”

> Sure, but I bet Intellij is a bit better when it comes to debugging java applications. I don't know about intelliJ specifically, but a good debugger beats the crap off the limited interface an IDE provides to them. It looks like IntelliJ only offers basic breakpoint/step through, etc. For a quick overview of what you're missing out on checkout "Give me 15 minute and I'll change you min on GDB": ▶ this video (hopefully the right video, can't check at work)

RecommendsView on HN
@daniel-levin2018 · in “Ask HN: What is the best practice for reading large pieces of C code?”

Compile it with debugging symbols and run it with gdb in tui mode. This will let you place breakpoints in source files, view back traces, find the definitions of functions, structures, macros, etc. The learning curve is a tad steep, but this video is pretty good: ▶ this video

RecommendsView on HN
@zython2018 · in “GDB 8.1 Released”

Seems like a I cannot edit my post, but I just remembered this brilliant short talk (15min) about gdb's TUI. ▶ this video It really did change my opinion of gdb in just 15 min.

Strongly recommendsView on HN
CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”1:15:46

CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”

CppCon
178K views • 9 years ago
CppCon 2015: Herb Sutter "Writing Good C++14... By Default"1:29:06

CppCon 2015: Herb Sutter "Writing Good C++14... By Default"

CppCon
193K views • 11 years ago
PTVS 2.0 Beta: Mixed-Mode Python/C/C++ Debugging overview8:12

PTVS 2.0 Beta: Mixed-Mode Python/C/C++ Debugging overview

python tools
8K views • 13 years ago
CppCon 2019: Matt Godbolt “Compiler Explorer: Behind The Scenes”1:00:21

CppCon 2019: Matt Godbolt “Compiler Explorer: Behind The Scenes”

CppCon
29K views • 7 years ago
GoingNative 2012 - Day 2 - Clang1:00:54

GoingNative 2012 - Day 2 - Clang

aghuttun
13K views • 13 years ago
CppCon 2016: Herb Sutter “Leak-Freedom in C++... By Default.”1:39:25

CppCon 2016: Herb Sutter “Leak-Freedom in C++... By Default.”

CppCon
149K views • 10 years ago
CppCon 2015: Bjarne Stroustrup “Writing Good C++14”1:40:46

CppCon 2015: Bjarne Stroustrup “Writing Good C++14”

CppCon
351K views • 11 years ago
CppCon 2014: Herb Sutter "Back to the Basics! Essentials of Modern C++ Style"1:40:27

CppCon 2014: Herb Sutter "Back to the Basics! Essentials of Modern C++ Style"

CppCon
323K views • 12 years ago
De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable - Herb Sutter  CppCon 20191:33:12

De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable - Herb Sutter CppCon 2019

CppCon
90K views • 7 years ago
CppCon 2017: Kate Gregory “10 Core Guidelines You Need to Start Using Now”1:02:33

CppCon 2017: Kate Gregory “10 Core Guidelines You Need to Start Using Now”

CppCon
144K views • 9 years ago
CppCon 2016: Chandler Carruth “Garbage In, Garbage Out: Arguing about Undefined Behavior..."57:39

CppCon 2016: Chandler Carruth “Garbage In, Garbage Out: Arguing about Undefined Behavior..."

CppCon
94K views • 10 years ago
Hacking with Andrew and Brad: tip.golang.org1:02:49

Hacking with Andrew and Brad: tip.golang.org

The Go Programming Language
99K views • 11 years ago
CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”55:42

CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”

CppCon
77K views • 7 years ago
CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced.  What do they really do?”1:14:22

CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced. What do they really do?”

CppCon
288K views • 9 years ago
Twenty Minutes of Reasons to Use the RemedyBG Debugger20:00

Twenty Minutes of Reasons to Use the RemedyBG Debugger

Molly Rocket
70K views • 4 years ago
CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"1:07:35

CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"

CppCon
102K views • 11 years ago
Can C++ be 10x Simpler & Safer?  - Herb Sutter - CppCon 20221:54:00

Can C++ be 10x Simpler & Safer? - Herb Sutter - CppCon 2022

CppCon
277K views • 3 years ago
CppCon 2018: Hana Dusíková “Compile Time Regular Expressions”54:48

CppCon 2018: Hana Dusíková “Compile Time Regular Expressions”

CppCon
14K views • 8 years ago
Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”1:00:17

Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”

CppCon
41K views • 7 years ago
CppCon 2015: Timur Doumler “C++ in the Audio Industry”1:03:44

CppCon 2015: Timur Doumler “C++ in the Audio Industry”

CppCon
131K views • 11 years ago