How to

find out that Visual Studio is attached

Published: 30. September 2011 | Updated: 26. October 2011
License: Microsoft Public License (MS-PL)
Categories: Debug
Tags: C# Debug Visual Studio
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Diagnostics;

Code

if(Debugger.IsAttached)
{
    ...
}
Send us feedback about this snippet »



Related Snippets: