Live data from Hacker News

Writing a Debugger from Scratch

timdbg.com

1–9 of 9 posts

Re: Writing a Debugger from Scratch

#2
I feel like it's good to note since I missed it. This post is from Feb 13, 2023. He has up to 8 posts on this at this point which don't appear to be linked to from this post. I think linking to all of them would be a bit much, but they're all currently listed on his main page [1].

[1] https://www.timdbg.com/

Re: Writing a Debugger from Scratch

#4
A favorite developing a debugger story was from a friend of mine.

They were working on a debugger for OS/2, which was quite notable at the time for being multitasking.

And at one point they got to enough of a base feature set that they could use the debugger on itself. Debugging the debugger.

While debugging the debugger, they would inevitably encounter other bugs in the debugging debugger.

So, with OS/2, they had a bit of an epiphany when they were able to debug the debugger debugging the debugger.

Re: Writing a Debugger from Scratch

#5
post #4

A favorite developing a debugger story was from a friend of mine. They were working on a debugger for OS/2, which was quite notable at the time for being multitasking. And at one point they got to enough of a base feature set that they could use the debugger on itself. Debugging the debugger. While debugging the debugger, they would inevitably encounter other bugs in the debugging debugger. So, with OS/2, they had a…

It took us a bit of work back in the day to use Firebug to debug Firebug. But pretty easy these days to have Chrome dev tools to debug itself.

Re: Writing a Debugger from Scratch

#6
For linux, there's this excellent series of articles by Eli Bendersky:

https://eli.thegreenplace.net/2011/01/23/how-debuggers-work-...

https://eli.thegreenplace.net/2011/01/27/how-debuggers-work-...

https://eli.thegreenplace.net/2011/02/07/how-debuggers-work-...

(Unfortunately, the articles don't include links to their respective follow-ups, but I'm pretty sure it ends after part 3...)

Re: Writing a Debugger from Scratch

#7
post #4

A favorite developing a debugger story was from a friend of mine. They were working on a debugger for OS/2, which was quite notable at the time for being multitasking. And at one point they got to enough of a base feature set that they could use the debugger on itself. Debugging the debugger. While debugging the debugger, they would inevitably encounter other bugs in the debugging debugger. So, with OS/2, they had a…

And I used to use the Numega SoftIce debugger to debug the anti-copying protection of itself, back in the day.

(Allegedly. Shout out to +fravia, RIP.)

Re: Writing a Debugger from Scratch

#8
post #4

A favorite developing a debugger story was from a friend of mine. They were working on a debugger for OS/2, which was quite notable at the time for being multitasking. And at one point they got to enough of a base feature set that they could use the debugger on itself. Debugging the debugger. While debugging the debugger, they would inevitably encounter other bugs in the debugging debugger. So, with OS/2, they had a…

And I used to use the Numega SoftIce debugger to debug the anti-copying protection of itself, back in the day. (Allegedly. Shout out to +fravia, RIP.)

Numega SoftIce! Now thats a name I've not heard in a a long time. I think I had 2 Windows98 machines and a RS232 cable for connecting them.

Re: Writing a Debugger from Scratch

#9
post #6

For linux, there's this excellent series of articles by Eli Bendersky: https://eli.thegreenplace.net/2011/01/23/how-debuggers-work-... https://eli.thegreenplace.net/2011/01/27/how-debuggers-work-... https://eli.thegreenplace.net/2011/02/07/how-debuggers-work-... (Unfortunately, the articles don't include links to their respective follow-ups, but I'm pretty sure it ends after part 3...)

Thanks for the nudge - I've added links to other posts in the series in each one (there are only 3 - you found them all!)