This is a great series of posts which have inspired me to write a debugger when they were posted here before. Very fun! This is another insightful series of the topic: <a href="https://eli.thegreenplace.net/2011/01/23/how-debuggers-work-part-1" rel="nofollow">https://eli.thegreenplace.net/2011/01/23/how-debuggers-work-...</a>
Thanks for the hint. There is a whole 750 page book by the author, and I immediately bought it after checking the sample chapter and TOC: <a href="https://nostarch.com/building-a-debugger" rel="nofollow">https://nostarch.com/building-a-debugger</a>