473,383 Members | 1,846 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,383 software developers and data experts.

Difference between Debug & Release

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.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Jul 21 '05 #1
5 6956
An assembly created in debug mode will contain compiler checks so you should
compile in release mode for your production version of the assembly.
"codymanix" <do*********************@gmx.de> wrote in message
news:ud**************@TK2MSFTNGP11.phx.gbl...
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.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #2
> 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...

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Jul 21 '05 #3
Hi,

I am not sure about the differences between the release
and debug builds in .NET, but I found two blog entries
about it.

http://weblogs.asp.net/savanness/arc.../05/23/7496.as
px

http://weblogs.asp.net/trichards/arc.../05/23/7486.as
px

Dolly
Jul 21 '05 #4
> I am not sure about the differences between the release
and debug builds in .NET, but I found two blog entries
about it.

http://weblogs.asp.net/savanness/arc...5/23/7496.aspx

http://weblogs.asp.net/trichards/arc...5/23/7486.aspx

Thank you but that didn't help me much.
It seems that nobody knows the differences for sure...

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu
[noncommercial and no fucking ads]
Jul 21 '05 #5
Ian
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

"codymanix" <do*********************@gmx.de> wrote in message
news:ud**************@TK2MSFTNGP11.phx.gbl...
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.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #6

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

Similar topics

6
by: ss | last post by:
Hi I built an exe in console debug mode & Release mode . The console debug mode -exe works fine ...but the release mode EXE starts well but fails mid way . The exe is being started as a...
0
by: Vani | last post by:
Has anyone come across this issue? There seems to be a behavioral difference (and possible bug) in visual strudio 2003 when building a vc.net solution through IDE and building the same solution...
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...
3
by: | last post by:
Since I need to dotfuscate my exe file anyway, does it make any difference if I use Debug or Release versions. Would a Debug version be easier to decompile/study/reverse engineer than a Release...
2
by: Chris Pielak | last post by:
Hi. I'm about to try deploying my ASP.NET application, written with the 1.1 Framework. I'm coming across something odd when compiling in Debug and Release mode. When compiling in Debug mode, I...
5
by: codymanix | last post by:
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...
3
by: Soundman32 | last post by:
I have written a program that runs fine when launched from a PC with VS2005 installed, but crashes when launched on a PC with just the redistributable installed. The message is the standard...
4
by: Ant | last post by:
Hi, I' thought i'd finally ask... why are there two folders, Bin & Obj when a project is built? They each have the debug & release version of the exe. What's the diff? Thanks for any answers...
5
by: Jonas Hallgren | last post by:
Hello, Is there any general tips on how to solve this problem: my Debug version runs fine but when I do a Release version I get error messages!? I'm hoping it is a simple option somewhere or...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.