Difference between Debug & Release

  • Thread starter Thread starter codymanix
  • Start date Start date
C

codymanix

What are the Differences between Debug & Release? Is the byte code the same
and there is only difference in JIT compilation? And is there a great impact
to Performance?

In c++, there where checks in generated code that verified in debug mode
that objects are valid, checks to verify the integrity of the stack,
delete[] filled objects with specific bytes to help debug and so on.

But in .NET such things aren't neccessary due to it garbagecollector and no
direct memory access.
 
An assembly created in debug mode will contain compiler checks so you should
compile in release mode for your production version of the assembly.
 
An assembly created in debug mode will contain compiler checks so you
should
compile in release mode for your production version of the assembly.

Which kind of checks? This was my actual question...
 
Hi,

IIRC debug mode leaves in your calls to Debug.* and produces slightly more
verbose code to help the debugger. The perf impact usually isn't great but
you'd need to test this yourself for your particular app.

Ian
 
Back
Top