Vs2010 configuration and debugging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.