What is different between using #if (DEBUG) and System.Diagnostics.Debugger.IsAttached in visual studio? Are there cases of the DEBUG
private void ConfigureOAuthTokenConsumption(IAppBuilder app)
{
#if DEBUG
AuthenticateViaAppOwnIdentity(app);
#else
AuthenticateViaAzureAD(app);
#endif
}
With this code, just try to change the build from debug to release and vice-versa. The running/excluded code will show changed in VS automatically as black and grayed out respectively