1. Home
  2. Wookash Podcast

Jan 10, 2025

How Fortnite funded an open-source debugger

Ryan Fleury

167 min → 2:00

Overview

Open-source lead developer Ryan Fleury explains how debuggers work, why performance bottlenecks happen, and what the future of debugging and software engineering looks like.

3 things to know

Debug Information (PDB vs. RDI)

Compilers generate extensive "debug info" files (like PDB on Windows) that map compiled code back to its source.

More

Due to PDB's complexity, the RAD team created a simpler, open format (RDI) and a converter, making it easier to build tools upon.

▶ Watch at 1:00:52

Fleury says code editors and debuggers should stay separate tools

Ryan Fleury argues that code editors constantly change unfinished code while debuggers only read finished compiled programs, giving them opposite jobs that work best in separate tools.

▶ Watch at 1:27:56

Fleury: Modern debuggers add logs without rebuilding your code

Ryan Fleury says programmers do not have to choose between interactive debuggers and logging, because modern debuggers use log points to print messages without recompiling the program.

More

The argument that developers must choose between interactive debugging and log-based debugging is flawed.

▶ Watch at 1:33:37

Also in this episode

Fleury: Debuggers ask the operating system to control another program

Ryan Fleury explains that a debugger works by registering with the operating system to intercept and control another program as it runs, letting you inspect its memory and state.

▶ Watch at 0:00

C++ lasts because of its surrounding tools, says Ryan Fleury

Ryan Fleury argues that the longevity of a language like C++ comes less from its design and more from decades of work on its compilers, debuggers, libraries, and community knowledge.

▶ Watch at 1:05:52

Fleury says new low-level languages lack proven development tools

Ryan Fleury says that adopting a new language for serious low-level programming forces developers to give up the mature, battle-tested toolchain of an established language.

▶ Watch at 2:11:58

Tech talk on Twitter is not rational debate, says Fleury

Ryan Fleury describes technical talk on platforms like Twitter as a competition for influence rather than a rational debate, arguing that experienced developers should share good advice to guide beginners.

More

Experienced developers have a responsibility to provide a strong, positive "signal" to help guide beginners.

▶ Watch at 2:26:56

Quotes

“It's a false dichotomy... I use log debugging too... It's not that you do one or the other. It's that debuggers are hand-designed to make certain cases of gathering information about the execution of programs as fast and as much of a breeze as possible.”

▶ Watch at 1:27:56

“An editor's whole purpose is to modify the source code. And if you're modifying the source code, you're now invalidating the debug info.”

▶ Watch at 1:15:07

“A programming language is not just a language design... It's as if you built a house on a foundation and you're like, 'Okay, let's change out the foundation.' You know what I mean? It's like, you can't just do that.”

▶ Watch at 1:05:52

17 more quotes

“The difference between a debugger and a normal program is that the debugger will talk to the operating system and say, 'I would like to register or attach... as the debugger for this other program.'”

▶ Watch at 0:00

“I originally started programming... to a half-serious degree when I was like six years old. My older brother... showed me QBasic.”

▶ Watch at 1:20

“RPG Maker 2003... movement is all grid-locked, there's no diagonal movement, the combat is like one of those... you go to a separate combat screen and you have... it's turn-based... Whereas A Link to the Past obviously was like real-time top-down.”

▶ Watch at 3:21

“I really didn't want to lose this chance... I really want to work on, you know, stuff from scratch per usual.”

▶ Watch at 27:32

“By the way, we're being bought by Epic. And I was like, oh... do I still have a job?”

▶ Watch at 28:32

“We just tried to sneak it up there... And then people immediately found it. Like within the day, people were like posting it everywhere.”

▶ Watch at 32:23

“Working on a debugger really helps. Like if you haven't worked on a debugger... I wouldn't have known this if I'd never worked on a debugger.”

▶ Watch at 1:00:25

“Once you know what debug info contains, you can start just doing a lot with it. Like, you have a file that comes out every time you build that tells you every function in your program... all of the types in your program.”

▶ Watch at 1:00:52

“Let's just have a simpler format. Let's just do the most straightforward version of a debug info format that you could do. And then we'll just... convert the PDB... and then build the debugger on our format instead.”

▶ Watch at 1:02:03

“I mean, it could probably be summed up in one word, which is Fortnite.”

▶ Watch at 1:09:44

“You could also do log points. You could do basically printf debugging, but you don't have to rebuild your program.”

▶ Watch at 1:33:37

“With the idea of the debugger visualizing things in a way that makes sense, for example, like... vertex buffers or like things like that in a... RenderDoc style thing, this breaks my mind. Like this would be so cool.”

▶ Watch at 1:35:22

“There's time travel debugging so you could run backwards.”

▶ Watch at 1:03:38

“I think the cost of switching has to be worth it. And so I think currently it's too early in these new language histories for it to be really worthwhile to me.”

▶ Watch at 2:11:58

“Why are we storing code as text files? Like, why are we even editing text files? Why is this the base format for all of our tools?”

▶ Watch at 2:13:54

“When you are interacting on a system like Twitter, you are not engaging in rational debate... you are participating in a contest of signals between different people.”

▶ Watch at 2:26:56

“You're not forced to accept just mediocre results. I think... people think that those solutions can't exist when I feel like the reality is that they're everywhere to be found.”

▶ Watch at 2:29:22

Full summary

Episode Overview

  • This episode features an in-depth conversation with Ryan Fleury, a programmer on the RAD Debugger, tracing his journey from a six-year-old hobbyist using QBasic to becoming the lead developer on a major open-source project.
  • The discussion provides a technical deep dive into the inner workings of debuggers, exploring the complexities of debug information formats (like PDB), the design philosophy behind building a standalone debugger, and the business rationale for Epic Games open-sourcing the tool.
  • Ryan critiques the common "debugger vs. printf" debate, explores the future of debugging with features like data visualization and time-travel, and analyzes key performance bottlenecks in modern debuggers.
  • The conversation broadens to cover Ryan's philosophy on software engineering, including the critical importance of a language's ecosystem over its design purity, and his motivations for sharing knowledge on his blog and social media to guide newcomers.

Key Concepts

  • Debugger Fundamentals: A debugger operates by registering with the OS to intercept and control another program's execution, allowing for inspection of memory, registers, and program state.
  • Debug Information (PDB vs. RDI): Compilers generate extensive "debug info" files (like PDB on Windows) that map compiled code back to its source. Due to PDB's complexity, the RAD team created a simpler, open format (RDI) and a converter, making it easier to build tools upon.
  • Standalone vs. IDE-Integrated Debuggers: A core philosophical debate centered on the idea that editors (read-write tools for constantly invalid code) and debuggers (read-only tools for a static, compiled program) have fundamentally different purposes, justifying their separation for optimal design.
  • The "Debugger vs. Printf" False Dichotomy: The argument that developers must choose between interactive debugging and log-based debugging is flawed. Both are valuable, and modern debuggers are beginning to incorporate the strengths of logging (e.g., "log points") without the need to recompile.
  • Language Ecosystem vs. Language Design: The value and longevity of a programming language like C++ are less about its design and more about the decades of investment in its surrounding ecosystem, including compilers, linkers, debuggers, libraries, and community knowledge.
  • The Cost of Switching Languages: Adopting a new language for serious low-level development involves sacrificing the mature, battle-tested toolchain of an established language—a cost that is often prohibitively high.
  • Software Development as a "Contest of Signals": Public technical discourse, especially on platforms like Twitter, is not a forum for rational debate but a competition of ideas and influence. Experienced developers have a responsibility to provide a strong, positive "signal" to help guide beginners.

Quotes

  • At 0:00 - "The difference between a debugger and a normal program is that the debugger will talk to the operating system and say, 'I would like to register or attach... as the debugger for this other program.'" - Ryan Fleury provides a concise, high-level explanation of how a debugger fundamentally operates, featured in the "Coming Up!" montage.
  • At 1:20 - "I originally started programming... to a half-serious degree when I was like six years old. My older brother... showed me QBasic." - Ryan Fleury pinpoints the very beginning of his programming journey in early childhood.
  • At 3:21 - "RPG Maker 2003... movement is all grid-locked, there's no diagonal movement, the combat is like one of those... you go to a separate combat screen and you have... it's turn-based... Whereas A Link to the Past obviously was like real-time top-down." - Ryan details the specific limitations of RPG Maker that made him realize it was not the right tool for the kind of game he wanted to build, sparking his interest in more fundamental programming.
  • At 27:32 - "I really didn't want to lose this chance... I really want to work on, you know, stuff from scratch per usual." - Ryan explains his strong preference for "greenfield" projects, which made the debugger opportunity so appealing compared to working on existing codebases.
  • At 28:32 - "By the way, we're being bought by Epic. And I was like, oh... do I still have a job?" - Ryan recounting the surprising news he received on his very first call with Jeff Roberts, and his immediate reaction of uncertainty about his new role.
  • At 32:23 - "We just tried to sneak it up there... And then people immediately found it. Like within the day, people were like posting it everywhere." - Ryan describes the unexpectedly viral "shadow release" of the RAD Debugger's first public alpha, which gained far more attention than the team had anticipated.
  • At 60:25 - "Working on a debugger really helps. Like if you haven't worked on a debugger... I wouldn't have known this if I'd never worked on a debugger." - Fleury on how building a debugger provides a uniquely deep understanding of how programs work under the hood.
  • At 60:52 - "Once you know what debug info contains, you can start just doing a lot with it. Like, you have a file that comes out every time you build that tells you every function in your program... all of the types in your program." - Fleury explaining that debug information is a powerful resource for building tools beyond just debuggers.
  • At 62:03 - "Let's just have a simpler format. Let's just do the most straightforward version of a debug info format that you could do. And then we'll just... convert the PDB... and then build the debugger on our format instead." - Outlining the strategy of converting the complex PDB format into their own simplified RDI format.
  • At 69:44 - "I mean, it could probably be summed up in one word, which is Fortnite." - Fleury humorously explaining that Epic Games' business model, driven by major successes like Fortnite, allows them to open-source tools like the RAD debugger to improve developer efficiency rather than selling them directly.
  • At 75:07 - "An editor's whole purpose is to modify the source code. And if you're modifying the source code, you're now invalidating the debug info." - Highlighting the fundamental conflict between an editor's read-write nature and a debugger's need for a static, compiled state.
  • At 87:56 - "It's a false dichotomy... I use log debugging too... It's not that you do one or the other. It's that debuggers are hand-designed to make certain cases of gathering information about the execution of programs as fast and as much of a breeze as possible." - Fleury's view that debuggers and print/log-based debugging are complementary tools, not opposing methodologies.
  • At 93:37 - "You could also do log points. You could do basically printf debugging, but you don't have to rebuild your program." - Ryan Fleury explaining how modern debuggers can provide the benefits of logging without the slow recompile loop.
  • At 95:22 - "With the idea of the debugger visualizing things in a way that makes sense, for example, like... vertex buffers or like things like that in a... RenderDoc style thing, this breaks my mind. Like this would be so cool." - Lukasz expresses excitement about the potential for specialized data visualizations in a debugger.
  • At 1:03:38 - "There's time travel debugging so you could run backwards." - Ryan Fleury introducing the concept of reverse execution in debugging, allowing a developer to step backward in time to find the root cause of an issue.
  • At 1:05:52 - "A programming language is not just a language design... It's as if you built a house on a foundation and you're like, 'Okay, let's change out the foundation.' You know what I mean? It's like, you can't just do that." - Ryan Fleury using an analogy to explain that a language's value is deeply tied to its entire ecosystem of tools, which is difficult and costly to replace.
  • At 131:58 - "I think the cost of switching has to be worth it. And so I think currently it's too early in these new language histories for it to be really worthwhile to me." - Ryan Fleury on why he continues to use C despite its flaws, weighing the benefits of newer languages against the loss of a mature and stable toolchain.
  • At 133:54 - "Why are we storing code as text files? Like, why are we even editing text files? Why is this the base format for all of our tools?" - Ryan Fleury questioning fundamental assumptions in programming, suggesting that a true revolution in software development would require rethinking more than just the programming language itself.
  • At 146:56 - "When you are interacting on a system like Twitter, you are not engaging in rational debate... you are participating in a contest of signals between different people." - Ryan Fleury sharing his key takeaway from engaging in technical discussions on social media, framing it as a battle of influence rather than pure logic.
  • At 149:22 - "You're not forced to accept just mediocre results. I think... people think that those solutions can't exist when I feel like the reality is that they're everywhere to be found." - Ryan Fleury pushing back against the common industry mindset of accepting trade-offs (e.g., readability vs. performance), arguing that often a better solution exists that improves multiple aspects simultaneously.

Takeaways

  • To gain a deep understanding of how computer systems work, consider working on a low-level tool like a compiler or a debugger.
  • Frustration with the limitations of high-level tools can be a powerful catalyst for learning more fundamental, low-level programming concepts.
  • Leverage both interactive and log-based debugging in your workflow; they are complementary tools, not mutually exclusive methods.
  • When evaluating a new programming language, consider the maturity and stability of its entire ecosystem (tools, libraries, community), not just the elegance of its syntax.
  • Recognize that dedicated, standalone tools can often provide a superior user experience by focusing on doing one job exceptionally well, as opposed to integrated "all-in-one" solutions.
  • Use writing and public speaking as tools to refine your own ideas; if you find an idea difficult or embarrassing to articulate clearly, it may be flawed.
  • Treat social media engagement as an opportunity to provide a strong, helpful "signal" for newcomers, as they rely on guidance from experts to navigate the industry.
  • Challenge foundational assumptions in your field (e.g., "Why do we still write code in text files?") to uncover opportunities for true innovation.
  • Do not blindly accept common trade-offs (like performance vs. readability); actively seek out superior solutions that improve multiple aspects of a problem simultaneously.
  • Explore the full capabilities of modern debuggers, including advanced features like conditional breakpoints, log points, and data visualizations, to dramatically increase your efficiency.
  • Understand that debug information files are a rich data source that can be repurposed to build a wide variety of powerful custom development tools beyond just debuggers.
  • Seize opportunities to work on "greenfield" projects from scratch, as they offer unparalleled learning experiences and the freedom to build things the right way.

Watch the full episode 2 hr 47 min

Read along with the audio summary

Why are we still storing and editing computer code as plain text files, and why is that the base format for all of our tools? Programmer Ryan Fleury raises this foundational question to show what it takes to truly rethink software development. In this episode from January 10, 2025, host Lukasz talks with Fleury, the lead developer on the open source RAD Debugger project. By the end, you will learn how debuggers actually work under the hood, why language ecosystems matter more than syntax, and how to improve your own engineering workflow.

How a debugger takes control of a running program. As Fleury explains, it talks directly to the operating system, which is the core software managing your computer, and asks to attach to another program to intercept and control its execution. This allows a developer to pause a running program and inspect its memory, its processor registers, and its overall state.

Once a debugger attaches to a program, it needs a map to make sense of what it sees, which shows how simplifying complex data formats makes it easier to build custom tools. Every time you build a program, the compiler generates extensive debug information files, such as the PDB format on Windows, which map the compiled machine code back to the human readable source code. Because the PDB format is so complex, the RAD team created their own simpler, open format called RDI, and built a converter to translate PDB files into this straightforward version.

Why separating your code editor from your debugger leads to a better design. Fleury points out that an editor is a read and write tool meant to constantly modify source code, which immediately invalidates the debug information. A debugger, on the other hand, is a read only tool designed to inspect a static, already compiled program. Recognize that dedicated, standalone tools can often provide a superior user experience by focusing on doing one job exceptionally well.

How to combine the speed of interactive debugging with the power of logging. Developers often argue over whether to use an interactive debugger or to track down bugs by printing text logs, a method commonly called printf debugging. Fleury calls this a false dichotomy, noting that he uses both because they are complementary tools. Modern debuggers even include a feature called log points, which lets you do printf style logging right inside the debugger without having to rebuild your program.

Why a programming language's surrounding ecosystem matters more than its design. It is easy to judge a language like C plus plus purely by its design flaws. However, its true value and longevity come from decades of investment in its surrounding ecosystem, including compilers, linkers, debuggers, libraries, and community knowledge.

That massive foundation directly shapes the hidden cost of switching to a brand new programming language. Fleury notes that for him, it is currently too early in the history of newer languages to make giving up the stable toolchain of C worthwhile. When you evaluate a new programming language, consider the maturity and stability of its entire ecosystem, not just the elegance of its syntax.

How to use social media to guide the next generation of developers. Public technical discourse on platforms like Twitter can look like a place for logical argument, yet Fleury realized it is not a forum for rational debate at all. Instead, it is a competition of ideas and influence, where experienced developers have a responsibility to provide a strong, positive signal for beginners.

The most important mindset shift for any engineer is to stop blindly accepting common industry trade offs, like sacrificing performance for readability, and instead look for solutions that improve multiple aspects of a problem at once. You are not forced to accept just mediocre results.

More from Wookash Podcast

Related Episodes