DLL从模块列表中缺少VS2010 [英] DLL Missing from Modules List in VS2010

查看:123
本文介绍了DLL从模块列表中缺少VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的被敲我的头靠在了这一个众所周知的墙壁上。

I've really been banging my head against the proverbial wall over this one.

我有一个包含C#和C ++代码项目的解决方案。

I have a solution which contains both C# and C++ code projects.

我经常调用C ++的DLL,这是从通过P / Invoke的C#的这个项目编译。没问题。所有通过 *。SLN 文件,以及C ++和C#文件所需的调试程序设置,已正确设置,据我所知。 注意:我常常很能没有问题调试类似P /调用C ++代码

I often call the C++ DLLs, which are compiled in this project from the C# via P/Invoke. 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. Note: I often am able to debug similarly P/Invoked C++ code with no issues!

当然,我想,也许,符号不装 - 然而,在打开的窗口的模块,我发现,在其中我试图步DLL甚至没有上市!跑在我的C#程序确实使用DLL(我得到正确的输出)功能,而且,还能欣赏到模块窗口中,DLL仍然没有出现。

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! 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.

有没有人有什么事情的想法?

Does anyone have an idea of what's going on?

TL;博士

我有经验了相当数量与调试P /调用C ++。不过,我想调试DLL甚至没有出现在模块列表(所以如果VS调试器似乎是完全不知道它的存在我显然我不能踏进去)。

I have a fair amount of experience with debugging 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).

推荐答案

我的猜测是,你有没有打开调试对于非托管代码做。进入启动项目的属性 - >调试选项卡。选中启用非托管代码调试。

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".

这篇关于DLL从模块列表中缺少VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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