The previous article took you to play the Visual studio--Unit test tells the use of unit tests in Visual Studio. In the VC + + development and debugging, sometimes it is impossible to set breakpoints in debugging (as I have encountered the development of the browser plug-in, because it is the browser to invoke the development of the plug-in DLL, so it is not in vs in the way to run the breakpoint debugging), then you need to use the binding process in the way, debugging. Create a cue box where you want to set up your judgment
For convenience, we create a dialog box directly in the main method to debug.
Execution Procedure
After the compilation is successful, click on the program executable (. exe file) to start running. There will be a prompt dialog box, debug Dialog:
Debug Dialog
# # #绑定进程
Select Menu Debug->attach to Process ... Open the Bind Process dialog box
Binding process
Select the process to bind, click "Attach" to be able to debug.
Previous review:
I'll show you around. Visual studio--Unit Test
What to tell in the next article:
I'll take you to the visual studio--to bring you multiple engineering development