VSPackage:为什么在VS2010中使用C#项目的解决方案中C ++ com项目中的断点没有被击中 [英] VSPackage: Why breakpoint in C++ com project didn't get hit in a solution with a C# project in VS2010

查看:56
本文介绍了VSPackage:为什么在VS2010中使用C#项目的解决方案中C ++ com项目中的断点没有被击中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010实验实例IDE中同时加载了C#和C ++(COM)项目.启动项目是C#.它的属性设置为启用非托管代码调试.同样,C ++项目和C#项目均在未优化的情况下进行编译 代码".

I have both C# and C++(COM) project loaded in a VS2010 experimental instance IDE. The start up project is C#. Its property is set to enable unmanaged code debugging. Also both the C++ project and C# project are compiled without "Optimized Code".

我在C ++项目中设置了一个断点,并且已启用该断点.来自另一个COM应用程序的调用(已从VSPackage调用ExecuteStatement()进行调用)将对C ++进行COM调用.但是,断点永远不会命中(但是它 似乎该电话已执行).

I have a breakpoint set in the C++ project and it was enabled. A call from another COM application(which was called from a VSPackage with ExecuteStatement() call) will make a COM call to the C++. However, the breakpoint is never hit(but it seems that the call is executed).

我检查了IDE中的模块"窗口,C ++ dll的时间戳似乎与我在IDE中构建C ++的时间一致.

I checked the Modules window in IDE, the time stamp for the C++ dll seems to be consistent with the time when I built the C++ in the IDE.

有人知道为什么C ++项目中的断点没有被击中吗?

Any idea why the the breakpoint in the C++ project doesn't get hit?

NR1234

推荐答案

可能是以下设置:

Possibly these settings:

http://stackoverflow.com/questions /654696/how-to-debug-external-class-library-projects-in-visual-studio


这篇关于VSPackage:为什么在VS2010中使用C#项目的解决方案中C ++ com项目中的断点没有被击中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆