C#/C(managed2unamanged)Visual studio 2015 update 2

2019-09-12 08:26发布

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条回答
Bombasti
2楼-- · 2019-09-12 08:57

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.

查看更多
登录 后发表回答