无法调试 Excel 2003 Addin (XLL)
我的问题:
我目前正在从事 XLL(用 C++ 编写)和 VSTO 开发。我使用的是 Visual Studio 2008 和 Excel 2003。
我的 VSTO 插件没有做任何令人兴奋的事情。 我的 XLL 向最终用户提供 UDF(主要是计算)
,我最近才开始使用 VSTO 插件,并注意到现在当我尝试调试 XLL 时,我无法附加到现有的 Excel 进程。如果我禁用 VSTO 插件,那么这个问题就会消失,我可以通过附加到进程来调试 XLL。
当我从 XLL 项目启动“调试”并让 VS 启动 Excel 并且它加载我的 XLL 和 VSTO 时,我可以调试 XLL。这并不完全理想,因为能够附加到现有会话会很好。
这个问题似乎是环境问题,有谁知道为什么会发生这种情况?
My problem:
I'm currently working on both an XLL (written in C++) and VSTO development. I'm using Visual Studio 2008 and Excel 2003.
My VSTO addin doesn't do anything exciting.
My XLL provides UDFs to the end-user (mostly calculations)
I've only recently started on the VSTO addin, and noticed that now when I attempt to debug my XLL I can't attach to an existing Excel process. If I disable the VSTO addin then this problem goes away and I can debug the XLL by attaching to the process.
When I launch "debug" from my XLL project and have VS launch Excel and it loads both my XLL and VSTO I can debug the XLL. This isn't exactly ideal as it would be nice to be able to attach to an existing session.
This problem appears to be envirnomental, does anyone know why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
连接时,对话框中会有一个选项,可让您选择所需的调试器类型。单击“选择”按钮,确保选中“本机”。
When you attach, there's an option in the dialog that lets you choose the kind of debugger you want. Click the Select button, ensure you have "Native" ticked.