DLL Missing from Modules List in VS2010

末鹿安然 提交于 2019-12-07 04:46:56

问题


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.

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!

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;dr

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


回答1:


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



来源:https://stackoverflow.com/questions/15234384/dll-missing-from-modules-list-in-vs2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!