Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
how to change an exe already generates debug mode Any CPU to an exe on x86 mode apartir the exe and not returning to the debogauge
Posted
Updated 28-Jan-13 23:38pm
v2
Comments
Richard MacCutchan 29-Jan-13 5:17am    
You question is not very clear. However, I suggest you look at the Project Properties; you can select processor type and Debug or Release build.
AbassiOmar 29-Jan-13 5:21am    
is there a method to change the mode from a debug exe

1 solution

No - you select the "Solution Configuration" from "Debug" to "Release" and rebuild your solution instead.

An EXE file built for debug will have extra data inserted to make debug easier, and will also generate different code, because it will not optimize anywhere near and aggressively. You can't just "flip a switch" and the extras disappear and the optimisations happen! :laugh:
 
Share this answer
 
Comments
Joezer BH 29-Jan-13 5:53am    
Not only will it make debug easier, but it will also act differently in some cases!!
e.g. garbage collection works differently in order to keep unneeded object's values for your inspection etc.
OriginalGriff 29-Jan-13 6:03am    
It will indeed - and it can come as a shock if you write bad code! :laugh:
I've yet to see it with Visual Studio, but I've worked on systems before where the release optimisations caused bugs in the software to show up, which you couldn't see in the debug version. That is a frustrating experience! :)
AbassiOmar 29-Jan-13 6:06am    
so it is impossible to do, you can not make some sort of conversation for example
OriginalGriff 29-Jan-13 6:18am    
No, not without a recompilation, unless you write code to effectively do the recompilation for you!

It's not just a flag that is switched: if your car is broken down in a car park, you can't just swap the number plates to a different car and expect to drive it way with your key (and without the police coming to look for you) - changing a label does not change the content.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900