A Feature Switcher debug console for web applications that allows you to easily turn on and off features in MVC applications.
The console will appear only on debug builds. In release builds functionality is disabled.
Install-Package FeatureSwitcher.DebugConsole
Features.Are.ConfiguredBy.Custom(
DebugConsoleBehaviour.IsEnabled
// Your behaviours here
);
Locate the javascript from the package installation 'packages\FeatureSwitcher.DebugConsole.x.x.x.x\scripts\featureswitcher.debugconsole.min.js' and copy it into your application. Then include it in views where you want the debug console.
@if (HttpContext.Current.IsDebuggingEnabled)
{
<script id="feature-debug-console-script" type='text/javascript' src='/Script/featureswitcher.debugconsole.min.js'></script>
}
Note: Do not change the id attribute