You still can debug your project, even when compiled as release. When you stop execution you may look at the memory in the debugger. You can fill the memory manually with fixed values and check how much gets altered after a while.

<furthermore to help debugging is: You may set the optimization level on a file basis. So you can allow the debugging for a single file only.