System.Diagnostics.Debugger.IsAttached will return True if a debugger is running. Note that this is completely different to compiling in Debug mode, and you can’t use this function to test for that. Conditional compilation is more suited (coming soon).
No related posts.
Tags: .NET, .NET Framework, Visual Studio











