Debugging unmanaged code while debugging managed code

后端 未结 3 2002
忘掉有多难
忘掉有多难 2020-12-15 18:23

The .NET 3.5 application I am working on consists of bunch of different solutions. Some of these solutions consist of managed code(C#) and others have unmanaged code(C++). M

相关标签:
3条回答
  • 2020-12-15 18:35

    By default a managed project will only start the debugger with managed debugging enabled. It doesn't consider that there are unmanaged projects in the same solution. In order to debug both you need to explicitly enable unmanaged code debugging.

    • Right Click on the project and select properties
    • Go to the Debug tab
    • Check "Enable Unmanaged code debugging"
    0 讨论(0)
  • 2020-12-15 18:40

    In Visual Studio 2019, the option is enabled as follows:

    • Right Click on the project and selecting properties
    • Go to the Debugging submenu under Configuration
    • From the Debugger Type drop down values select Mixed
    0 讨论(0)
  • 2020-12-15 18:41
    1. Go to the Managed project property.
    2. Right click on it and go to the debug tab.
    3. There is a section called enable debugger under that section.
    4. Check the "Enable native code debugging" option

    then you will be able to debug the native code. Good luck !!!

    Please refer the below attached image highlighted with red rectangle.

    0 讨论(0)
提交回复
热议问题