: Windows Debug Output

I have found it hard to output errors in the windows port of SDL. You
seem to be redirecting the standard output&error to files. This is not
what I’d like to tell someone who wants to try my SDL-based game
(“if the game doesn’t start look for a file stderr.txt in the
directory…”).
I have got the following idea:
Have you seen Unreal? It has an Unreal Log Window that displays the
debug information nicely and is real cool :)(my opinion). You could
make a window in a seperate thread or better a seperate process
that display the standard output. Additionally, you could support a
possibility to show a message box at the end of the program.

BTW, is anyone interested in Visual-C project files or not or are you
going to make a seperate release compiled with Visual C when the
next major version (0.9 or 1.0?) is out?

Just my thoughts,
Paulus Esterhazy (@Paulus_Esterhazy)

I have found it hard to output errors in the windows port of SDL. You
seem to be redirecting the standard output&error to files. This is not
what I’d like to tell someone who wants to try my SDL-based game
(“if the game doesn’t start look for a file stderr.txt in the
directory…”).
I have got the following idea:
Have you seen Unreal? It has an Unreal Log Window that displays the
debug information nicely and is real cool :)(my opinion). You could
make a window in a seperate thread or better a seperate process
that display the standard output. Additionally, you could support a
possibility to show a message box at the end of the program.

I’ve been meaning to do this for a long time.
You’ll probably have to write an SDL implementation of fprintf that
checks to see if the file pointer is stdout or stderr, and write to an
output window if so.
Then, in a header file… #define fprintf SDL_fprintf

Does anyone have time to do this?

BTW, is anyone interested in Visual-C project files or not or are you
going to make a seperate release compiled with Visual C when the
next major version (0.9 or 1.0?) is out?

I am definitely interested in Visual-C project files.
When I make the next major release (0.8, soon!) I’d like to have VC++
project files that people can drop in. I already merged your vkeys.h
into SDL, so you don’t need that anymore.

Thanks!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/