If your program debug version can be used, it can be used to compile into a release version. Perhaps the debug Release program method described below will help you:
The steps are as follows: 1. Select Settings for all configurations in Project Settings. 2, in the C / C tag, Debug Info selection Program Database. 3. In the Link tag, category selection Debug, select the debug info check box and Microsoft Format.
Now you can set a breakpoint for testing as in the debug version. Due to code optimization, some variables are not observed, and the running order of the line may also be different.
Note: Assert Macro does not work in the release version, and you should use Verify to debug the release. If there is a problem with the release version, you can prohibit all code optimization (Project -> The Optimizations in the Project -> The Optimizations in the C / C tag is selected as a Disabled).