断点不适用于 WinRT CPP 文件

Break points not working on WinRT CPP File

我有一个 UWP C# project.I 正在向它添加一个 WinRT cpp 项目的解决方案。 .CS 文件调用 cpp 上的函数。我添加了 break points.But control is not going to cpp while 运行。我试过下面changes.But 没有效果

Rebuld the project
Tools > Options > Debugging > General > Enable Edit and Continue
Tools->Options->Projects and Solutions->Build and Run. Make sure the top two options ('On Run, when projects are out date' and 'On Run, when build or deployment errors occur') and in a reasonable state (NOT 'never build' or 'Launch old version').

在项目 属性 中,找到 Debug 选项卡,然后在 "Debugger type" 中,将应用程序设置为 "Native Only".

C# 解决方案的默认设置是 "Managed Only",因此不会命中 cpp 中的断点。