Added preprocessor macro "DEBUG" to the Debug scheme in project settings.