Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
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 28-Jan-13 22:53pm
Edited 28-Jan-13 23:38pm
Richard MacCutchan at 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 at 29-Jan-13 5:21am
is there a method to change the mode from a debug exe

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 | :laugh:
Edo Tzumer at 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 at 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 at 29-Jan-13 6:06am
so it is impossible to do, you can not make some sort of conversation for example
OriginalGriff at 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)

Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 29 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100