Navigate Select ESC Close

Why Making a Debugger is So Hard! | The Standup (ft. Ryan Fleury)

2025-08-21 Science & Technology
79.7k
2.9k
300
ThePrimeTime
ThePrimeTime
1.1m subscribers

Deep Dive into Debugger Mechanics and Performance Trade-offs

Understand why stepping in native code is complex and discover how modern debuggers like RAD aim to eliminate performance penalties associated with introspection.

Short Summary

  • Logging and proper debugging extract the same data; the difference is often the efficiency of the tool.
  • Native debugging relies heavily on CPU mechanisms like the INT 3 instruction, leading to slow context switching between user space and the kernel.
  • Effective debugger UI/UX development is arguably one of the most complex tasks in software engineering, combining low-level assembly interaction with high-level visualization.
  • RAD Debugger focuses on overcoming these kernel overheads and offering advanced visualization features like dynamic 3D geometry viewing.

This discussion with Ryan Flu unpacks the technical difficulties in implementing features like step-over, conditional breakpoints, and fast data display in compiled languages. Ryan details the history of the RAD project and its ambition to provide a viable Linux debugging solution.

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Ship Faster with Neon Postgres #ad Neon comes with Branching, Schema Diff, and Instant Point-In-Time Recovery to help you ship fast and recover faster. Get the free plan at https://neon.com https://twitch.tv/ThePrimeagen - I Stream 5 days a Week https://twitter.com/terminaldotshop - Want to order coffee over SSH? ssh terminal.shop Become Backend Dev: https://boot.dev/prime (plus i make courses for them) This is also the best way to support me is to support yourself becoming a better backend engineer. Great News? Want me to research and create video????: https://www.reddit.com/r/ThePrimeagen Kinesis Advantage 360: https://bit.ly/Prime-Kinesis 📍 Chapters: 00:00:00 Intro 00:02:10 Printf Debugging 00:10:20 RAD Debugger Origins 00:25:00 PDB (Program Database) Limit 00:27:27 RAD Linker 00:28:40 Working for Epic 00:32:13 What the hell is MUMPS 00:33:28 D Sucks 00:34:45 Oodle Adjacent 00:35:40 How do steps work? 00:42:50 INT 3 Instruction/Trap 00:46:20 Step count 00:47:50 Overwrite and replace 00:49:42 The desire for user level INT 3 handling 01:00:39 Alternative to User level INT 3 01:03:10 Chrome Debugger complaints 01:07:51 RAD Debug features 01:16:52 Compatible languages 01:18:41 Gabe Newell annoucement strategy 01:19:37 Outro 1 01:20:01 Cleverer than Stack pointers 01:22:55 Prime pees on stream 01:24:20 Faking addresses and the shadow stack 01:27:50 Data breakpoints 01:28:38 Prime shoots his shot 01:32:46 TLDR 01:34:28 Debugging in VM langs 01:35:00 PUBE G 01:36:28 Outro 2

Top Comments (10)

@coreyfro 2025-08-21

You guys are HORRIBLE influences on Casey and I am here for it.

328
@ziv132 2025-08-21

Ryan is completely overwhelmed by this mess

282 1 replies
@theminecraft4202 2025-08-21

the influence Teej and Prime have had on Casey is tangible in this one

176 2 replies
@llave8662 2025-08-21

D. Muratori is my favorite D influencer

129
@wojteksowinski248 2025-08-21

🚫 printf debugging ✅ Text Driven Development

89 2 replies
@overture2112 2025-08-29

Since Casey literally called me out at 26:20 : I'm an ex-JPMorgan compiler dev and can confirm we have written our own linker. Alas, it was for an in-memory compiler for optimizing monte carlo payoff functions, and sadly not due to PDB constraints :(

48 1 replies
@nathanpotter1334 2025-08-21

Casey liking microbrews is canon

21
@AndreasGalistel 2025-08-21

Casey rants is why I am here.

20
@leflorians 2025-08-22

tj is such a menace. literally came back to listen to this again just for his jokes, love it. (also, I love you Dasey (D.) Muratori)

18
@tk1576 2025-08-28

it's like a real standup, complete chaos LMFAO

6

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot