Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Sets script output to debug if built in debug configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciomurta committed May 5, 2017
1 parent 1e9634a commit 9e55e50
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,18 @@ protected void Application_Start(object sender, EventArgs e)

protected void Session_Start(object sender, EventArgs e)
{
#if DEBUG
// Enables debugging code output by default if the project is built in debug configuration.
if (Session["Ext.Net.ScriptMode"] == null)
{
Session["Ext.Net.ScriptMode"] = ScriptMode.Debug;
}

if (Session["Ext.Net.SourceFormatting"] == null)
{
Session["Ext.Net.SourceFormatting"] = true;
}
#endif // DEBUG
}

protected void Application_BeginRequest(object sender, EventArgs e)
Expand Down

0 comments on commit 9e55e50

Please sign in to comment.