When I coded in basic I used to write my own debugging feature for programs. I'm using SDL at the moment. It seems to have no built in text functionality and although I made a crude bitmap font loader for it it would be easier if there was something like a plugin that could be used when a C prog is run that displays all the variables. Or even better lets me edit them while the program is running. Does anything free like this exist? If so what would you recommend?
Also on errors I use exit(1). Is there then a way that I can pass an error message to an alert box which pops up saying why the prog failed?