Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@idiot @allison @animeirl @nishi Yeah, I know how to get a stack trace, disassemble a chunk of RAM, dump the registers.
Rob Pike said that when he was debugging the blit terminal with Ken Thompson, it would crash and he'd start rifling through the stack trace or flipping through the code, and Ken would just look at the ceiling and think, and Ken usually found the bug faster. A mental model of how the program works is more useful than the debugger: the debugger can only tell you what has happened and show it to you in slow motion, it can't say why.