简体   繁体   English

VS2010 模块列表中缺少 DLL

[英]DLL Missing from Modules List in VS2010

I've really been banging my head against the proverbial wall over this one.我真的一直在用头撞在这堵墙上的众所周知的墙上。

I have a solution which contains both C# and C++ code projects.我有一个包含 C# 和 C++ 代码项目的解决方案。

I often call the C++ DLLs, which are compiled in this project from the C# via P/Invoke.我经常调用 C++ DLL,它们是在这个项目中通过 P/Invoke 从 C# 编译的。 No problemo.没问题。 All the requisite debugger settings through the *.sln file, as well as the C++ and C# files, have been properly set, to the best of my knowledge.据我所知,*.sln 文件以及 C++ 和 C# 文件中所有必需的调试器设置都已正确设置。 Note: I often am able to debug similarly P/Invoked C++ code with no issues!注意:我经常能够毫无问题地调试类似的 P/Invoked C++ 代码!

Naturally, I figured that, perhaps, the symbols weren't loading -- yet, upon opening the modules window, I discovered that the DLL into which I am attempting to step isn't even listed!自然地,我想,也许符号没有加载——然而,在打开模块窗口时,我发现我试图进入的 DLL 甚至没有列出! Running the function in my C# program does indeed use the DLL (I get the correct output), but, whilst watching the Modules window, the DLL still does not appear.在我的 C# 程序中运行该函数确实使用了 DLL(我得到了正确的输出),但是,在查看模块窗口时,DLL 仍然没有出现。

Does anyone have an idea of what's going on?有谁知道发生了什么?

tl;dr --> I have a fair amount of experience with debugging P/Invoked C++. tl;dr --> 我在调试 P/Invoked C++ 方面有相当多的经验。 However, the DLL I wish to debug does not even appear in the Modules list (so I obviously am not able to step into it if the VS debugger appears to be completely unaware of its existence).然而,我想调试的 DLL 甚至没有出现在模块列表中(所以如果 VS 调试器似乎完全不知道它的存在,我显然无法进入它)。

Thanks in advance!!提前致谢!!

Cheers!干杯!

-Kadaj -卡达吉

My guess would be that you do not have debugging turned on for unmanaged code.我的猜测是您没有为非托管代码打开调试。 Go to the Start-up project's Properties->Debug tab.转到启动项目的属性->调试选项卡。 Check "Enable unmanaged code debugging".选中“启用非托管代码调试”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM