Mixed-mode debugging of the x64 process is supported only when you are using the Microsoft. NET Framework version 4 or later

Source: Internet
Author: User



The . NET Framework version below 4 does not support mixed-mode debugging of the x64 process. This means that when you are debugging, you cannot step from managed code to native code, and you cannot step from native code to managed code.

Problem solving
    • Update the project to use the Microsoft. NET Framework version 4 or later.

      Or

      Debug managed code and native code in a separate debugging session.

      Or

      Debug the mixed code as a 32-bit process, as described in the following procedure.

Change the platform to 32-bit (Visual Basic or C #)
  1. In Solution Explorer , right-click your project, and then select Properties.

  2. In the property page, click the Compile or debug tab.

  3. Click Platform, and then select x86 from the list of platforms.

    By Default, the Visual Basic and C # compilers generate code to run on any CPU by default. on a 64-bit computer, these binaries run as 64-bit processes. to run in a 32-bit process, you must select "Win32" instead of "AnyCPU".

Change the platform to 32-bit (C + +)
    1. In Solution Explorer , right-click the project and click Properties.

    2. In the Properties page, click Platform, and then select Win32 from the list of platforms.

The . NET Framework version below 4 does not support mixed-mode debugging of the x64 process. This means that when you are debugging, you cannot step from managed code to native code, and you cannot step from native code to managed code.

Problem solving
    • Update the project to use the Microsoft. NET Framework version 4 or later.

      Or

      Debug managed code and native code in a separate debugging session.

      Or

      Debug the mixed code as a 32-bit process, as described in the following procedure.

Change the platform to 32-bit (Visual Basic or C #)
  1. In Solution Explorer , right-click your project, and then select Properties.

  2. In the property page, click the Compile or debug tab.

  3. Click Platform, and then select x86 from the list of platforms.

    By Default, the Visual Basic and C # compilers generate code to run on any CPU by default. on a 64-bit computer, these binaries run as 64-bit processes. to run in a 32-bit process, you must select "Win32" instead of "AnyCPU".

Change the platform to 32-bit (C + +)
    1. In Solution Explorer , right-click the project and click Properties.

    2. In the Properties page, click Platform, and then select Win32 from the list of platforms.

Mixed-mode debugging of the x64 process is supported only when you are using the Microsoft. NET Framework version 4 or later

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.