Comprobar if debug en View

Fuentes


@if (HttpContext.Current.IsDebuggingEnabled)
{
    // Means that debug="true" in Web.config
}