Loading video...

Video Failed to Load

Go Home

This is why I spend more time inside GDB than I do writing code, and so should you. Lex Fridman || John Carmack

117,803 views • 2 months ago •via X (Twitter)

26 Comments

Ryan Fleury's profile picture
Ryan Fleury2 months ago

Related:

Phil's profile picture
Phil2 months ago

Imagine how much better of a programmer Carmack would have been if he had known about print statements.

uɐllɐdnɹɯɐᴉ's profile picture
uɐllɐdnɹɯɐᴉ2 months ago

John Carmack was right. -> Stop `printf` debugging. Open the debugger and watch your code run step by step. -> On Mac just type: `lldb ./your_program` You’ll understand your code better in 10 minutes than hours of print statements.

Nicolas Craske's profile picture
Nicolas Craske2 months ago

Tracing and stepping through taught me so much about how OOP works AND how many algorithms behave. Debugging is an art form.

ASE's profile picture
ASE2 months ago

Would be useful to see more agent workflows that treat the debugger as a first-class loop, not just “write → hope → read the stack trace.” Carmack’s point still stands: if you’re not inspecting the running program, you’re guessing.

Gordon Leete's profile picture
Gordon Leete2 months ago

Debugger is the only way to have more power than root

gaussie's profile picture
gaussie2 months ago

This is why ITS had a DDT as a shell.

Cyber Ximas's profile picture
Cyber Ximas2 months ago

I remember when the "boss" from the worst "company" (glamourized personal project) I ever worked for, who really believed he was some sort of genius, was not able to install a useful debugger and stated, "It is better to use prints". Stupidity at its finest.

lderait Menlinden's profile picture
lderait Menlinden2 months ago

The thing about 3d engines are you have to balance a lot of tradeoffs. It makes you appreciate the complexity of reality, that you get for free.

banzaan's profile picture
banzaan2 months ago

would a team of three agents for programming debugging and qc work better?

Ticker St.'s profile picture
Ticker St.2 months ago

gdb + AI

Conny Brunnkvist's profile picture
Conny Brunnkvist2 months ago

I spent years inside WinICE .. I never want to go back, but I feel like it provides a very sound basis for almost all other work. 🧐

Abhishek🌱's profile picture
Abhishek🌱2 months ago

thats why I spend more time in flamegraphs, perf., nsysy, ncu, i don't believe until i see through my naked eyes lolll

Wolfgang Josef Lughofer's profile picture
Wolfgang Josef Lughofer2 months ago

Step-by-Step — uh, Baybayy 👊

Rajath's profile picture
Rajath2 months ago

Thanks got sharing this. Will watch and sleep

Name's profile picture
Name2 months ago

The world is just in such poverty when Lex is the best humanity can offer as an interviewer. Then again, it's free, so I guess it indeed has no value.

SiRiUS CoOp's profile picture
SiRiUS CoOp2 months ago

I learned to code in QBasic. Had a built-in debugger—and built-in hyperlinked docs. It was pretty awesome.

Gabbar Singh's profile picture
Gabbar Singh2 months ago

Gnu DDD helped me get thru college and complete my thesis.

Jon Kakaley's profile picture
Jon Kakaley2 months ago

I can’t believe there are actually people who claim to not use debuggers

RMS Ministries's profile picture
RMS Ministries2 months ago

Like explaining the internal combustion engine to a dog.

Javier Neira's profile picture
Javier Neira2 months ago

but some people continue using *only* print("**** I have been here ****")

David Reinig's profile picture
David Reinig2 months ago

Any debugger that does the job. But GDB (with plugging for nicer visualisation) is actually really nice

Robert Baker's profile picture
Robert Baker2 months ago

The other day I had to solve a problem with camera angles being wrong when switching from FP to orbital and back and AI one-shotted the fix in about 30 seconds. I often use the debugger but man is it nice to have AI! 😃💙

Carlos Tecnico's profile picture
Carlos Tecnico2 months ago

Spent more time in GDB this week than writing code 🙄

Sonny Sunshine's profile picture
Sonny Sunshine2 months ago

Debooger

Tu's profile picture
Tu2 months ago

He doesn't argue for using GDB, he essentially says it's the last resort that's better than nothing.

Related Videos