1 / 18
文档名称:

vc 调试(Vc debugging).doc

格式:doc   大小:28KB   页数:18页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

vc 调试(Vc debugging).doc

上传人:rjmy2261 2017/11/27 文件大小:28 KB

下载得到文件列表

vc 调试(Vc debugging).doc

文档介绍

文档介绍:vc++调试(Vc++ debugging)
Always want to sum up a method of debugging in the VC++, but due to the previous C++ classes at the university I always pry the class, so there is no well, today saw izen summary of an article, I have a copycat.
The debugger can help you understand how the program works.
1, how to quickly standardize code indent format
Select the required code, press shift+F8
2, how to debug in the Release state
Project>Setting... >Project Settings dialog box, select the Release state. In the "C/C++" tab, Category selects General, Optimizations selects Disable (Debug), and Debug info selects Program Database. In the "Link" tab, select the Generate debug info checkbox.
Note: only one between Debug and Release intermediate state, all ASSERT and VERIFY have no effect, function call is really calling, but not the look-up table, but this state, QuickWatch call queue tracking function is still valid, and the Debug version.
3. What's the difference between Release and Debug?.
The Release version is called the release version, and the Debug version is called the debug version.
Debug can perform single step, tracking and other functions, but the generated executable file is relatively large, and the code runs slowly. Release version runs faster, executable file is small, but in pilation conditions are small, can not perform debugging function.
The Release file of exe is linked to the standard MFC DLL (Use MFC in a shared or static DLL), such as . These DLL are already configured when installing Windows, so these programs can run on machines without Visual C++ 6 installed. The Debug version of exe links the debug version of the MFC DLL file, such as . Cannot run on a machine that does not install Visual C++, because is missing, unless use static DLL when link is selected.
4. What's the difference between ASSERT and VERIFY?
ASSERT content inside the Release version is piled, VERIFY content is piled, but no longer judge

最近更新