To enable: `setenv TransportDebug YES`.
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- OTHER_CFLAGS = "-DBLU_DEBUG";
PREBINDING = NO;
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
};
NSString* format = [[NSString alloc] initWithFormat:cmd arguments:argList]; // format the command
va_end(argList);
-#ifdef BLU_DEBUG
- NSLog(@"--> %@", format);
-#endif
+ if ([[[[NSProcessInfo processInfo] environment] objectForKey:@"TransportDebug"] boolValue])
+ NSLog(@"--> %@", cmd);
return [NSString stringWithFormat:@"%@ -i %@", [format autorelease], session];
}
return nil;
}
-#ifdef BLU_DEBUG
- NSLog(@"<-- %@", doc);
-#endif
+ if ([[[[NSProcessInfo processInfo] environment] objectForKey:@"TransportDebug"] boolValue])
+ NSLog(@"<-- %@", doc);
return [doc autorelease];
}