How to detect if debugging

HttpContext is another HttpContext than you were used to since you are now using ASP.NET Core. That property can’t be found in the ASP.NET Core variant. An explanation of the differences is given by poke.

I would use Debugger.IsAttached, which not only checks if debugging is enabled, but also actively being debugged.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)