When I select menu Build → Build or anything else, it only builds the currently selected configuration (Debug or Release). How can I make it build, for example, Release also when I'm in "Debug mode" (I have debug selected)?
You can now debug your release build application. To find a problem, step through the code (or use Just-In-Time debugging) until you find where the failure occurs, and then determine the incorrect parameters or code.
Lots of your code could be completely removed or rewritten in Release mode. The resulting executable will most likely not match up with your written code. Because of this release mode will run faster than debug mode due to the optimizations.
It is well-known that Debug build in Visual C++ is very slow compared to Release build, with the typical ratio about 10-20 times.
C++Builder does not support multiple build configurations for a single project, but it does provide an easy way produce a debug build. To request a debug build, go to Project Options → Compiler and press Full debug. This will disable optimization and inlining and enable debugging information.
You can do this with "Batch Build", although it's not available in the Express version.
Anyway, you don't want to be building from the GUI anyway. You should be using MSBuild or something of that nature to automate your build process.
In the Visual Studio GUI, go to the menu
Build → Batch Build
This will pop up a window with all the possible combinations of projects and their configurations. Select all the items you want to build together and click the Build button on the right side of the window.
That's it.
There is also a button to rebuild a group of configurations instead of build (which is an incremental build).
There is also an option to select/deselect all configurations/projects to build/rebuild.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With