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
vc 调试(Vc debugging) 来自淘豆网m.daumloan.com转载请标明出处.