无法调试 Excel 2003 Addin (XLL)

发布于 2024-10-24 17:10:34 字数 387 浏览 8 评论 0原文

我的问题:

我目前正在从事 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒尘 2024-10-31 17:10:35

连接时,对话框中会有一个选项,可让您选择所需的调试器类型。单击“选择”按钮,确保选中“本机”。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文