Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

FeatureSwitcher.DebugConsole

A Feature Switcher debug console for web applications that allows you to easily turn on and off features in MVC applications.

Eaxample screenshot

The console will appear only on debug builds. In release builds functionality is disabled.

Setup

Install nuget package

Install-Package FeatureSwitcher.DebugConsole

Configure behaviour

Features.Are.ConfiguredBy.Custom(
    DebugConsoleBehaviour.IsEnabled
    // Your behaviours here
    );

Include the javascript

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

About

A Feature Switcher debug console for web applications

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.