You want to make debugging easier and your code faster.
First, disable compiler optimization. Next, enable arithmetic overflow checks in Debug mode, but disable them in Release mode.
When compiler optimization is enabled, it can be difficult to follow execution flow in the debugger. Enabling arithmetic overflow checks in Debug mode can help you fix programming errors while disabling it in Release mode can make your code run substantially faster. Find the compiler optimization option in the IDE under Project Properties | Build | Optimize Code. Or, at the command prompt, use the /optimize- option. To enable/disable arithmetic overflow checks, right-click your project, select Properties, choose the Build page and click the Advanced button.