2017-10-10 49 views
0

我有一个UWP C#项目。我正在为它添加一个WinRT cpp项目解决方案。 .CS文件在cpp上调用函数。我已经添加了中断点。但是运行时控制权不会转为cpp。我曾尝试以下changes.But显示没有影响断点不能在WinRT CPP文件上工作

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'). 
+0

Breakpoint not hit,or cpp code is not called all?他们是两个不同的问题 – kennyzx

+0

cpp代码正在调用。破发点不会击中它 – user2431727

回答

0

在项目属性,找到调试标签,并在“调试器类型”设置应用程序作为“唯一的本地”。

C#解决方案的默认值是“仅限管理”,因此cpp中的断点不会被命中。

debugger type