Q: How do I determine if I'm being run under the debugger? A: How do I determine if I'm being run under the debugger? The code in Listing 1 shows the best way to do this. Listing 1 Are you being debugged? #include <assert.h> #include <stdbool.h> #include <sys/types.h> #include <unistd.h> #include <sys/sysctl.h> static bool AmIBeingDebugged(void) // Returns true if the current process is being deb