Detecting if running in VS.NET

  • Thread starter Thread starter ko
  • Start date Start date
Hi all, is it possible to detect if a program is running in VS.NET IDE?

System.Diagnostics.Debugger.IsAttached
 
Why do you want to know that?

Want to trap runtime-errors redirecting user to a standard error page if not
in debug, otherwise i want the usual error screen if running in VS.NET IDE
(useful for me)

Bye
 
Back
Top