Hacker News new | ask | show | jobs
by tropo 2902 days ago
He is taking after Linus Torvalds, who resisted adding a kernel debugger for many years. Linus used console spew, PC speaker beeps, and storing a hash of file/line into the PC's time/date.
2 comments

... who resisted adding a kernel debugger for the explicit purpose of keeping casuals out of his zen garden, per your link below.

For people who don't have a hoard of elite developers banging down their gates to contribute code for free, I suspect the economics of being such a Prima Donna are not as attractive.

That's less not needing a debugger by design, more how challenging it is to debug an operating system.
Those last two (speaker and clock) yes, but otherwise no. Linus Torvalds really doesn't like using a debugger and he'd rather you didn't use one either. His words:

https://yarchive.net/comp/linux/debuggers.html

Wow. Lets add some sleep in the compiler also so people will think harder about their code before compiling?
I think that is excessive, but it isn't entirely wrong.

I worked at a place with builds that took over 8 hours. We sure would think hard about our code.

He's not wrong.

I still maintain that debuggers are a design smell.