What is the best way in c# to determine whether the programmer is running the program via IDE or its user?
if (System.Diagnostics.Debugger.IsAttached) { // You are debugging }
2.1m questions
2.1m answers
60 comments
57.0k users