aye, personally i don’t know any code off the top of my head to detect whether or not a debugger is running, but you can always just tweak your code to miss the splash screen out in the debug build.
Sure, preprocessor is good for compile-time detection.
I’m speaking of runtime detection.
I’m looking for a cross platform solution of “IsDebuggerPresent” under Win32.
I don’t like having 2 paths for the code (one with #define DEBUG and the other without), as 100% sure a fatal bug will appear in the #ifndef DEBUG part.
On the other side, it’s just the splash screen…
Under linux, I know about the “get parent pid of our pid, and if it is gdb, then we are under a debugger” trick, but I don’t know of any trick like this in MacOSX