开发者

How to know that the application is launched by debugger (VisualStudio) C#

开发者 https://www.devze.com 2023-01-08 17:49 出处:网络
In my c# code I\'d like to know whether the app has been launched by the debugger (in my cas开发者_JS百科e VisualStudio).

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. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消