In ASP.NET / MVC è possibile identificare se un'applicazione sta girando agganciata al debugger o meno tramite l'istruzione:

C#

System.Diagnostics.Debugger.IsAttached
Tags:
ASP.NET54 C#235 .NET66 MVC15 WCF18 Web service16
Potrebbe interessarti anche: