简体   繁体   English

C#/ C(managed2unamanged)Visual Studio 2015更新2 .NetCore控制台应用程序1.0,无法调试本机代码调试

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

I am using a .Net Core Console App using Visual Studio 2015 update 2 on windows machine. 我正在Windows计算机上使用Visual Studio 2015 Update 2的.Net Core Console App。 I am using a package "pack1"(managed code) in this console application which in turn calls native / c code dll. 我在此控制台应用程序中使用了程序包“ pack1”(托管代码),该程序包又调用了本机/ c代码dll。 I am able to step into pack1 code, but i am not able to step into my native code. 我可以进入pack1代码,但不能进入本机代码。

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. 尝试给本机代码pdb文件提供符号路径,启用了本机和托管代码兼容性选项,尝试将断点直接放入本机c源代码,还尝试从托管代码进入c代码,但它们似乎都不起作用。

Can some one please help me with this ? 有人可以帮我吗?

sample Project.json file : 示例Project.json文件:

{
  "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": { 
    }
  }
}

Based on this case: 基于这种情况:

No native code debugging in CoreCLR console application projects in VS2015? VS2015中的CoreCLR控制台应用程序项目中没有本机代码调试吗?

The specific app doesn't support for native debugging in VS IDE now. 特定的应用程序现在不支持VS IDE中的本机调试。 Think about using the "Attach to process" tool. 考虑使用“附加到处理”工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM