473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Performance Hit of Debug='true' and No PDB Files

Hey there,

This is no doubt demonstrating how cruddy my understanding is - what
are the performance implications of having left the Debug=true value
in your web.config file but not building/deploying the PDB symbol
file?

Thanks for your help.
Nov 18 '05 #1
2 2395
Hi

Debugging mode can hit performance for some reasons :

1) Debugging mode change the timing objects will be available for GC (in
release mode objects that use once in method available for GC after the
call).

2) Debugging mode turn off JIT optimization and tell .NET runtime to
track how objects
used.

3) Debug mode causes ASP.NET to compile applications with extra
information that enables a debugger to closely monitor and control the
execution of an application. there is dedicate handler for debugging :
HttpDebugHandler, that get called when application instance create.

4) Code that you write using Conditional Compilation Statements or
System.Diagnostics.Conditional("DEBUG") attribute will run.
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
In addition to Natty's points, I believe you also lose the benefits of
batch compiling the ASPX files. This can lead to the runtime
generating an excessive number of assemblies.

--
Scott
http://www.OdeToCode.com

On Thu, 08 Jul 2004 05:22:57 -0700, Natty Gur <na***@dao2com.com>
wrote:
Hi

Debugging mode can hit performance for some reasons :

1) Debugging mode change the timing objects will be available for GC (in
release mode objects that use once in method available for GC after the
call).

2) Debugging mode turn off JIT optimization and tell .NET runtime to
track how objects
used.

3) Debug mode causes ASP.NET to compile applications with extra
information that enables a debugger to closely monitor and control the
execution of an application. there is dedicate handler for debugging :
HttpDebugHandler, that get called when application instance create.

4) Code that you write using Conditional Compilation Statements or
System.Diagnostics.Conditional("DEBUG") attribute will run.
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Scott Collens | last post by:
Hi all, I have a question regarding web.config. I am ready to flip the application to the production server but when I switch the debug setting in the web.config from <compilation...
12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
6
by: Luis Esteban Valencia | last post by:
Hi, I want in debug mode debug=true. In release (production), no reason debug to be true but the questions are: 1. Does it slow the application (holding debug=true) 2. If yes, how can I solve...
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
1
by: Wade | last post by:
Hi all, We have a debate going on here in the office. There's one group that would prefer to have our LIVE environment with debugging turned on, because it's convenient when there's an error,...
1
by: Steve Franks | last post by:
Is there a way I can have my options set up so that on the production machine debug=false is always used, but on my dev machine debug=true is used? Currently I do not know how to do this,...
1
by: Jon | last post by:
Hello, I have 3 asp.net dll's that are on my host in debug mode, now, the runtime ones won't work, I know the reason why. But i just wanted to know if there#ll be much of a performance...
0
by: RonL | last post by:
Using Visual Studio, what is the difference between using Configuration Manager to set the Active Solution Configuration to Debug/Release and using Web.config to set Compilation to "debug=true"....
1
by: john_c | last post by:
Is setting Debug=true in the config file the same as compiling with the IDE set to debug? Thanks, John
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.