How to debug managed code and native code projects

Source: Internet
Author: User

When debugging a program that hosts code and does not host code at the same time, pay special attention to choosing the appropriate debugger type. Because I have seen many similar questions, I will write the practice here.

Before debugging in a hosted project, you need to enable the function of debugging the unmanaged code. This option exists in the debug option of the Project property:

Just hook up.

If attach is a process, select the process type in the attach to process dialog box:

It is automatically selected by default, but this is not always correct. It is best to select the correct type. Click Select to bring up the Select Code Type dialog box:

For example, if you are debugging hosted and non-hosted mixed code, you can check both managed and native code.

Author: Atfield)
Blog: Http://blog.csdn.net/atfield
Http://blogs.msdn.com/yizhang
Reprinted please indicate the source

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.