Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What problems might I miss by debugging a release build instead of debug build?

Let's say I prefer debugging a release build of my software during development.

What problems might I miss by doing that?

like image 572
Johann Gerell Avatar asked Dec 09 '11 15:12

Johann Gerell


Video Answer


1 Answers

  1. There are some optimizations that take place in the Release build. You can see the full list of optimizations here. None of them are supposed to affect the outcome of the program.

  2. If you have the DEBUG directive anywhere, that will stay in. Pay careful attention to this, as this could change whole functions.

  3. Debug.Asserts will fail in Debug mode but NOT in Release mode.

like image 116
DanTheMan Avatar answered Oct 12 '22 23:10

DanTheMan