开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜