How to set the debug mode?
By in ASP.NET on Jul 13 2006
  • Manoj Kumar Duraisamy
    Dec, 2016 30

    Visual Studio projects have separate release and debug configurations for your program. As the names imply, you build the debug version for debugging and the release version for the final release distribution.The debug configuration of your program is compiled with full symbolic debug information and no optimization. Optimization complicates debugging, because the relationship between source code and generated instructions is more complex.The release configuration of your program contains no symbolic debug information and is fully optimized. Debug information can be generated in PDB Files, depending on the compiler options that are used. Creating PDB files can be very useful if you later have to debug your release version.For more information about build configurations, see Understanding Build Configurations.You can change the build configuration from the Build menu, from the toolbar, or in the project’s property pages. Project property pages are language-specific. The procedure below shows how to change the build configuration from the menu and the toolbar. For more information about how to change the build configuration in projects in different languages, see the Related Topics section below. To change the build configurationFrom the Build menu: click Build / Configuration Manager, then select Debug or Release.On the toolbar, choose either Debug or Release from the Solution Configurations list box.toolbar build configurationThis toolbar is not available in Express editions. You can use the Build Solution F6 and Start Debugging F5 menu items to choose the configuration.

    • 0
  • Jul, 2006 13

    Debug Mode for ASP.NET applications - To set ASP.NET appplication in debugging mode, edit the application’s web.config and assign the “debug” attribute in < compilation > section to “true” as show below:
    < configuration >
    < system.web >
    < compilation defaultLanguage="vb" debug="true" / >
    ….

    ..
    < / configuration >
    This case-sensitive attribute ‘debug tells ASP.NET to generate symbols for dynamically generated files and enables the
    debugger to attach to the ASP.NET application. ASP.NET will detect this change automatically, without the need to restart the server. Debug Mode for ASP.NET Webservices - Debugging an XML Web service created with ASP.NET is similar to the debugging an ASP.NET Web application.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS