Sometimes some console applications will be testedProgramThese programs are directly tested from The Daily daily build. Okay. If there is a problem, you still need to locate the problem. Sometimes, opening a single project involves many references and cannot be debugged and run. The following describes how to use the compiled version of DEBUG to debugSource code.
Two points need to be clarified. First, the console application should be in debug; second, the console application and the source to be debugged.CodeConsistent version.
1. Open vsts and create a VC ++ Win32 console application;
2. Right-click the new project name, click 'properties', and select 'debug' in the left-side navigation pane ';
Enter the debug console application in command;
Enter parameters in command arguments;
In the working directory, enter the directory where the console application is located;
3. Specify symbol;
Tools-options-debugging-symbol;
Specifies the location of the directory where the symbol file is located (. PDB)
4. Open the. cpp file with the main function to be debugged
You can set breakpoint debugging as needed.
It is also suitable for debugging C # console applications.