Whenever we use any .js file then there we can easily able to debug and that time by default <compilation debug="true"> in web.config file.
But Bundling is a feature that makes it easy to combine or bundle multiple files into a single file and as <compilation debug="true"> is bydefault true so you can't be able to debug directly.
To Enable debugging in Bundling there are 2 steps exists:
1/To Enable debugging in Bundling we need to set the debug value to "false" in the web.config file like this,
<system.web>
<compilation debug="false"/>
</system.web>
2/Otherwise we can add BundleTable.EnableOptimizations=true either in RegisterBundles Method of BundleConfig.cs or in Application_Start() method of Global.asax.cs page.
But Bundling is a feature that makes it easy to combine or bundle multiple files into a single file and as <compilation debug="true"> is bydefault true so you can't be able to debug directly.
To Enable debugging in Bundling there are 2 steps exists:
1/To Enable debugging in Bundling we need to set the debug value to "false" in the web.config file like this,
<system.web>
<compilation debug="false"/>
</system.web>
2/Otherwise we can add BundleTable.EnableOptimizations=true either in RegisterBundles Method of BundleConfig.cs or in Application_Start() method of Global.asax.cs page.
0 comments:
Post a Comment