By build a debug version do you mean adding -DDEBUG -g to CFLAGS in my makefile?
Hooray! Adding the -DDEBUG -g flags to my makefile fixed it!
Thank you @aha_1980! I googled for this but nothing really came up, thanks!
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.