Organization of Visual C Development Tools and Debugging Techniques - Inconceivable - Let's cheer together for those who have dreams... sink

by stilling2006 on 2009-09-22 17:43:14

### Translation:

#### 1. How to debug in Release mode

Project -> Setting -> Project Setting dialog box, select the Release configuration. In the C/C++ tab, set Category to General, Optimizations to Disable (Debug), and Debug Info to Program Database. In the Link tab, check the Generate debug info checkbox.

**Note:** This is just an intermediate state between Debug and Release. All ASSERTs and VERIFYs are ineffective, function calls are already real calls rather than table lookups, but in this state, QuickWatch and call stack tracking functions are still effective, just like in the Debug version.

---

#### 2. Differences between Release and Debug

The Release version is called the release version, and the Debug version is called the debug version.

In Debug mode, you can perform single-step execution, tracing, and other debugging features, but the generated executable file is larger, and the code runs slower. The Release version runs faster, with a smaller executable file, but under its compilation settings, debugging functions cannot be executed.

The exe file in Release mode links to standard MFC DLLs (Use MFC in a shared or static DLL). These DLLs are pre-configured during the Windows installation process... %u8F...

---

(Note: The last part "%u8F" seems incomplete or corrupted in the original text, so it couldn't be fully translated.)