Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. debugging option in web.config

debugging option in web.config

Scheduled Pinned Locked Moved ASP.NET
sysadminperformanceworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ravibabu_kanaparthi
    wrote on last edited by
    #1

    Hi all, I had doubt on debugging option available with web.config In one of the articles i studied that "debugging option should be disabled in production environment for better performance". In fact i am not going to deploy my source code on the production server. How much is this statement is true. Let me know your valuable suggestions. Thanks and Regards, yeggu

    M V 2 Replies Last reply
    0
    • R ravibabu_kanaparthi

      Hi all, I had doubt on debugging option available with web.config In one of the articles i studied that "debugging option should be disabled in production environment for better performance". In fact i am not going to deploy my source code on the production server. How much is this statement is true. Let me know your valuable suggestions. Thanks and Regards, yeggu

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, IMO, the statement is completely true. I guess you mean "i am not going to deploy my source code on the production server" is that you not going to upload the source code files like .cs or .vb to the production server. In fact, the debug attribute of the compilation[^] element in the web.config file will decide how the ASP.NET web pages are compiled at run time by the framework. As you may already know that the framework will compile the web pages when the first request for the web page .aspx arrives, if you set the debug attribute to false, all the web pages in the directory are compiled into one DLL (retail binary). If this attribute is set to true, each page is compiled to a seperate assembly (debug binary) and the compiler also produces lots of files like debug symbol file .pdb, compiler command line file .cmdline ... So now you can realize that which option can make your application have a better performance. For more information, you can check out Milan's great article[^].

      1 Reply Last reply
      0
      • R ravibabu_kanaparthi

        Hi all, I had doubt on debugging option available with web.config In one of the articles i studied that "debugging option should be disabled in production environment for better performance". In fact i am not going to deploy my source code on the production server. How much is this statement is true. Let me know your valuable suggestions. Thanks and Regards, yeggu

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Yeggu, Whilst transitioning the application to Production environment, you may like to ensure that the application is compiled in 'Release' mode against the default 'Debug' mode. This way, your application size would be significantly less, since no debug symbols would be included. Also, in the web.config, you can set the debug mode to false. Did this attend to your query? Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://deepak.blogdrive.com/

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups