您可以参考以下文章了解Debug和Release:
Visual Studio Debug and Release Configurations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/_core_Debug_Build_Versus_Release_Build.asp
The Debug configuration of your program is compiled with full symbolic debug information in Microsoft format and no optimization (optimization complicates debugging, since the relationship between source code and generated instructions is more complex).
The Release configuration of your program is fully optimized and contains no symbolic debug information. Debug information may be generated in separate PDB files.