Debugging
Some really good insights by Derek Rayside.
The best way to debug is not to have bugs in the first place.
Implement
- Test-Driven Development
- Writing Pre-conditions (ex:
assert(isWellFormed())
)
From Derek A bug is a mistake made far enough in the past that you don’t remember what the hell was going on at that time.
If it’s just some code now, it is not a bug because it’s still in your head.
From Regression Testing “A bug is simply a test case you forgot to write.”
TODO
After seeing how well Chester was using the VSCode debugger, I really gotta learn how to use it. I didn’t even know that was a thing before.
Really good learn how to use the VSCode debugger.
For Clang / lldb debugger