Making Windows in SDL
Hello, My program runs fine as is, but I wanted to make a debug mode so that when the program executes and debug mode is on, it loads up 2 windows instead of 1 window, the second window would supply me with information on all of my variables and what they are doing as the program progresses. Any body know how to do this?
thx, fatherg |
I know you'd probably prefer to do it the way you want, but can I make a suggestion?
Wouldn't it be a bit better to have debug info printed as output so you could run your program from a terminal, and any error/debug messages would come up there. Because what if for instance a problem arises that stops the program from loading any windows? You won't have your debug info, at least at a terminal you could see why they werent loaded. You could even have a way of tracing variable value changes like: int i = 3 => int i = 4 Printed on the screen so you can see what a variable changed from, and what its new value is. I dont know just a suggestion :) (Sorry I don't know SDL so I can't answer the original question for you) |
yeah
Yeah I know what you mean, I'm actually doing that at the moment, but I'd like the window to have a few more features that just simple text input... good idea tho'.
|
All times are GMT -5. The time now is 11:12 AM. |