Demystifying Debuggers, Part 2: The Anatomy of a Running Program
rfleury.com
rfleury.com
For those who use debuggers regularly, would you be willing to share how you learned to use them or any tips and resources that helped you?
I also want to say that the effort behind articles like these is really appreciated. It’s valuable knowledge to share, especially since it seems like the friends I teach are more overwhelmed by them nowadays (maybe I just suck at teaching, but I'll keep trying).
I use debuggers a lot. I learnt the most when I implemented my own toy debugger. Everything made a lot more sense afterwards. It also made me realize that debuggers give you only a limited view of what is really going on in a CPU. If you want to truly understand how a program is executed on a CPU you'll need to learn a lot more about CPUs and likely about the specific CPU you work with.
Out of curiosity, what language did you write your toy debugger in?