C# break debugger within code

Date: 2019-04-24
#if DEBUG
                if (Debugger.IsAttached)
                              Debugger.Break();  
#endif

// Or use it to skip password validation
#if DEBUG
            if (System.Diagnostics.Debugger.IsAttached) return user;
#endif

21150cookie-checkC# break debugger within code