MVC - How to disable Script Buldling Minification for debugging

Trying to debug scripts can be a pain in the neck if you are using bundling and Minification to optimize your script size.

I have actually seen a few cases where IE ( 11 ) would not render correctly unless I disabled bundles.

You can still use bundles to have a single place to put all your scripts, but to disable minification you set EnableOptimizations  to false as shown below.

Open the App_Start/Bundle.Config file and add the following line of code.

BundleTable.EnableOptimizations = true;

That's all there is to it.

Now the script files should be generated out so you can set nice breakpoints and debug code.

Happy scripting.