In my c# code I'd like to know whether the app has been launched by the debugger (in my cas开发者_JS百科e VisualStudio). Does anyone know how to get this information?
TIA
System.Diagnostics.Debugger.IsAttached
Note: The answer is not entirely correct. :)
精彩评论