I have a problem. My SDL program isn't working right, so I want to debugged it. Unfortunately, the program crashes when it has an error. That means I can't look at the error messages when there's an error, so I can't do any debugging. I've tried using printf and cout and SYSTEM("PAUSE") and cin to stop pause it before it crashes. How do I fix this?