在VS.Net的调试器中正确检查COM / Interop类的实例? [英] Inspecting an instance of a COM / Interop class properly in VS.Net's debugger?

查看:192
本文介绍了在VS.Net的调试器中正确检查COM / Interop类的实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道在VisualStudio的调试器中是否以及如何可以正确地看到COM / Interop对象(在正确的类型中)?我得到的是' evil ' System .__ ComObject 值(即使它正确标识类型)?



例如:



解决方案

所以,这不是一个答案,但看看这两个屏幕截图。这是来自相同的应用程序,只是在两个不同的断点。在这两种情况下,COM对象都来自同一个COM / AX库。我不知道为什么在一种情况下,我看到系统.__ ComObject和在其他正确的类型。但是,在这两种情况下,我看到适当的对象/ interfaces属性。是什么赋予了?为什么有区别?



这里的第一个显示了一个System .__ ComObject,但它也显示了对象的所有属性。点击查看完整大小的图片。




Does anyone know if and how it's possible to see COM / Interop objects properly (in their correct type) in VisualStudio's debugger? All I get is the 'evil' System.__ComObject value (even though it correctly identifies the type)?

E.g.:

解决方案

So, this isn't an answer, but check out these two screen shots. This is from the same application, just at two different break points. In both cases the COM objects are from the same COM/AX library. I've no idea why in one case I see "System.__ComObject" and in the other the proper type. However, in both cases, I'm seeing the appropriate object/interfaces properties. What gives? Why the difference?

The first one here shows it showing up a "System.__ComObject", however it's also showing me all of the properites of the object. Click to view the full sized image.

The second one completely hides the "System.__ComObject". Click to view the full sized image.

这篇关于在VS.Net的调试器中正确检查COM / Interop类的实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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