I. vs2010 project property Configuration
When you use vs to debug a program, an error occurs: "The program cannot be started. EXE ". The system cannot find the specified file ". Find a solution online,
This problem cannot be solved, but I have gained more understanding of this problem, so I blocked him. At last♂Solved the problem. The Configuration Attribute of the Project is modified. The changed configuration is as follows:
1. [configuration properties] [general] Configuration
2. [configuration properties] [debugging] Configuration
3. linker Configuration
The above configuration solves my problems. Thanks again to the netizen: One night's remaining month♂
Ii. Use vs2010 to debug the program
Debugging programs generally take three steps: breakpoint setting, one-step running, and variable observation.
1. Set breakpoints
The breakpoint stops when the program runs here. After the breakpoint is set, you can use [start debugging] or [F5] for debugging.
2. One-step operation
Execute the program one step further and use [process by process/F10] or [Statement by statement/F11] for debugging.
3. Observe Variables
During debugging, the yellow lines in the Code point to the code to be executed but not yet executed. Check this statement and observe the changes of the variables in the local variables column, the modified variables in the column are marked in red.
In addition, you can monitor and view the variables to be followed.
Select a logical expression and right-click "quick monitor" to check whether the logic of the expression is true or false.
Vs2010 configuration and debugging