Skip to main content
GameDev.net gamedev.net
🔒 Locked

Why?

Started by Pipo DeClown Oct 7, 2002 at 1:45 PM 11 replies 500+ views
Original Post
Pipo DeClown
Pipo DeClown
Why a Debug build and a Release build of your exe, not just one? I always used the Debug build. [edited by - pipo declown on October 7, 2002 2:48:30 PM]
Borfaux
Borfaux
But when you release you don''t want the debug overhead in there.

Debug is for you to fix things.

Release is for everyone else once you have made it bug free. (if that is possible)
Ready4Dis
Ready4Dis
Release is more optomized, while debug is less optomized, and release has smaller files with less overhead, while debug has larger files with debugging information put into it.

Billy - BillyB@mrsnj.com
DrPizza
DrPizza
Because I''d rather have something small and fast than large and slow?
char a[99999],*p=a;int main(int c,char**V){char*v=c>0?1[V]:(char*)V;if(c>=0)for(;*v&&93!=*v;){62==*v&&++p||60==*v&&--p||43==*v&&++*p||45==*v&&--*p||44==*v&&(*p=getchar())||46==*v&&putchar(*p)||91==*v&&(*p&&main(0,(char**)(--v+2))||(v=(char*)main(-1,(char**)++v)-1));++v;}else for(c=1;c;c+=(91==*v)-(93==*v),++v);return(int)v;} /*** drpizza@battleaxe.net ***/
Yann L
Yann L
Releasing a debug build with all debug information, symbols, etc, is actually the nicest thing you can do - for your competition... It will make it a lot easier to reverse engineer or even decompile your code, or maybe crack a copy protection it might have.

As this is generally a highly undesirable effect for a software developer, code is always released in a non-debug (release) version. As a side effect, the optimization level is much higher too, and the code will run faster.
clrscr
clrscr
Why? Because.

Its not knowing the path but walking it.
-----------------------------When men speak of the future, the Gods laugh.An apology for the devil: it must be remembered that we have heard one side of the case. God has written all the books.Samuel Butler (1835 - 1902)
Oluseyi
Oluseyi
Unless the debug environment is redistributable, most users wont be able to run your debug applications.
jwalker
jwalker
if i am not mistaken, MFC dll files for debug mode is only available in visual studio. i think other dll''s from microsoft as well.

you wont be able to run debug mode programs on other machines if it does not have visual studio.



Pipo DeClown
Pipo DeClown
It does run!
[email notificate my own posting]
ZeroEffect
ZeroEffect
Example relating to speed. I''m in the middle of a small fighting game that uses .smd (half-life) files for the character animation - each character has over 50 animations (currently) and to read and load those files on initialization in debug mode can take up to 20 seconds. When I do a release build and run my program the files are loaded in around 3 seconds. All the debug information, padding and other helpers included in a debug build to help track down bugs comes at a price.

Chris Z.
ZeroFX Interactive
Chris Z. GPU FX
surabaya
surabaya
quote:

Releasing a debug build with all debug information, symbols, etc, is actually the nicest thing you can do - for your competition...



Yeah, right. Like a competitor would waste his time reverse engineering a program made by a guy who releases a debug build.
---------------------------What a great day to be alive!
Outworlder
Outworlder
quote:
Original post by surabaya

Yeah, right. Like a competitor would waste his time reverse engineering a program made by a guy who releases a debug build.


Heheheh. Indeed.

You know DeClown, if there exists a debug build and a release build, it must be a reason. Features cost time to implement. Time is money.
Gaiomard Dragon-===(UDIC)===-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.