_DTE.Mode Property
Visual Studio 2015
Gets the mode of the development environment, either debug or design.
Assembly: EnvDTE (in EnvDTE.dll)
Show:
Gets the mode of the development environment, either debug or design.