Enable Debugging in Web.config Because many parts of an ASP.NET application (such as .aspx, .asmx and .ascx pages) are dynamically compiled at run-time, you need to configure the ASP.NET run-time process to compile the application with symbolic information before the application can be debugged. To do this, set the debug attribute in the configuration section of the Web.config file that is located in the root of the application folder to true, as follows: <configuration> <compile debug=true/> </configuration> you can set the Debug attribute of the Page directive to true in your .aspx pages, as follows: <%@ Page Debug="true" %>
Liked By
Write Answer
How do you debug an ASP.NET Web application?
Join MindStick Community
You have need login or register for voting of answers or question.
Pushpendra Singh
01-Nov-2010Because many parts of an ASP.NET application (such as .aspx, .asmx and .ascx pages) are dynamically compiled at run-time, you need to configure the ASP.NET run-time process to compile the application with symbolic information before the application can be debugged. To do this, set the debug attribute in the configuration section of the Web.config file that is located in the root of the application folder to true, as follows:
<configuration>
<compile debug=true/>
</configuration>
you can set the Debug attribute of the Page directive to true in your .aspx pages, as follows:
<%@ Page Debug="true" %>