@implementation NSProcessInfo (Debugging)
- (BOOL)isBeingDebugged {
+#ifdef DEBUG
int mib[4];
struct kinfo_proc info;
size_t size = sizeof(info);
return sysctl(mib, sizeof(mib) / sizeof(*mib), &info, &size, NULL, 0) == 0
&& (info.kp_proc.p_flag & P_TRACED) != 0;
+#else
+ return NO;
+#endif
}
@end
CLANG_WARN__DUPLICATE_METHOD_MATCH = NO;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>482</string>
+ <string>483</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>NSHumanReadableCopyright</key>