[英]Debug VB 6.0 ActiveX DLL with .pdb file in Visual Studio
I have a VB 6.0 Project that I am able to compile and build the ActiveX DLL and .pdb file.我有一个 VB 6.0 项目,我可以编译和构建 ActiveX DLL 和 .pdb 文件。
I have added the .dll as a COM reference to my C# project in Visual Studio 2019 and it works fine.我在 Visual Studio 2019 中添加了 .dll 作为对我的 C# 项目的 COM 引用,它工作正常。
The problem is that I can't step into ActiveX DLL during debugging in Visual Studio and the .pdb file is not been loaded.问题是在 Visual Studio 中调试期间我无法进入 ActiveX DLL,并且未加载 .pdb 文件。
Can Visual Studio work with .pdb files of VB 6.0? Visual Studio 可以处理 VB 6.0 的 .pdb 文件吗? Is there anything I am missing?
有什么我想念的吗?
Thanks in advance.提前致谢。
You have to attach to the ActiveX container (IE most likely).您必须附加到 ActiveX 容器(最有可能是 IE)。
https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-debug-an-activex-control?view=vs-2019 https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-debug-an-activex-control?view=vs-2019
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.