Here are some notes as I code along with Tsoding as he creates a text editor in C:
In the first video of the series, Tsoding has us spin up gdb
pretty early on. I'm working on a Mac, so this isn't really an option. See here for a few tips on debugging C on a Mac.
Also he refers to a StackOverflow page without sharing the link. It's here.