Live data from Hacker News

Coding in the Debugger (2007)

tidyfirst.substack.com

31–32 of 32 posts

Re: Coding in the Debugger (2007)

#31
post #16
post #8

And this, boys and girls, is why you want to use a real IDE with an integrated debugger.

So emacs, right??

I'm actually a big fan of gud-mode and dap-mode in Emacs. They don't have as many features as some other debugger UIs, but the integration with the editor itself is unmatched imo.

Re: Coding in the Debugger (2007)

#32
Here's a quote which I got from comp.lang.lisp, long ago:

Here's an anecdote I heard once about Minsky. He was showing a student how to use ITS to write a program. ITS was an unusual operating system in that the 'shell' was the DDT debugger. You ran programs by loading them into memory and jumping to the entry point. But you can also just start writing assembly code directly into memory from the DDT prompt. Minsky started with the null program. Obviously, it needs an entry point, so he defined a label for that. He then told the debugger to jump to that label. This immediately raised an error of there being no code at the jump target. So he wrote a few lines of code and restarted the jump instruction. This time it succeeded and the first few instructions were executed. When the debugger again halted, he looked at the register contents and wrote a few more lines. Again proceeding from where he left off he watched the program run the few more instructions. He developed the entire program by 'debugging' the null program.

Post reply on HN