C#/C(managed2unamanged)Visual studio 2015 update 2 , .NetCore Console App 1.0 , not able to debug Native Code Debugging

天大地大妈咪最大 提交于 2020-01-07 07:43:08

问题


I am using a .Net Core Console App using Visual Studio 2015 update 2 on windows machine. I am using a package "pack1"(managed code) in this console application which in turn calls native / c code dll. I am able to step into pack1 code, but i am not able to step into my native code.

Tried giving symbol path to native code pdb file , enabled native and managed code compatibility option,tried putting breakpoint into the native c source code directly, also tried to step into c code from managed code, but none of them seem to work.

Can some one please help me with this ?

sample Project.json file :

{
  "version": "1.0.0-*",
  "buildOptions": {
    "emitEntryPoint": true,
    "defines": [ "DEBUG" ]
  },
  "dependencies": {
    "Microsoft.NETCore.App": {
      "type": "platform",
      "version": "1.0.0-rc2-3002702"
    },
    "pack1": "1.0.0.0"
  },
  "frameworks": {
    "netcoreapp1.0": {
      "imports": "dnxcore50"
    }
  },
  "configurations": {    "debug": { 
    }
  }
}

回答1:


Based on this case:

No native code debugging in CoreCLR console application projects in VS2015?

The specific app doesn't support for native debugging in VS IDE now. Think about using the "Attach to process" tool.



来源:https://stackoverflow.com/questions/38700702/c-cmanaged2unamangedvisual-studio-2015-update-2-netcore-console-app-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!