如何从托管代码项目中调试本机代码项目? C ++ / C# [英] How do I debug a native code project from inside a managed code project? C++/C#
本文介绍了如何从托管代码项目中调试本机代码项目? C ++ / C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从托管代码项目中调试本机代码项目?我使用C#调用C ++代码,需要调试C ++代码。否则,我必须退出项目,打开C ++项目,创建一个测试程序,然后调试代码。这是可怕的。
How do I debug a native code project from inside a managed code project? I am using C# to call C++ code and need to debug the C++ code. Otherwise, I must exit out of the project, open the C++ project, create a tester and then debug the code. This is horrible.
推荐答案
将您的c ++项目添加到包含C#代码的解决方案
Add your c++ project to the solution containing your C# code
在C#项目属性页面的调试选项卡下
In the C# project properties pages, under the debug tab
选中启用非托管代码调试
Check "Enable unmanaged code debugging"
这篇关于如何从托管代码项目中调试本机代码项目? C ++ / C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文