How to step into C/C++ DLL from C# application while debugging

只愿长相守 提交于 2019-12-28 14:03:54

问题


I have two project in my solution: C/C++ Win32 DLL and some C# application.

What I have to do to be able to step into DLL while debugging?

I switched on all debugging options in C++ project's settings and copied to C# application root next files: MyLib.dll, MyLib.pdb, vc90.pdb, vc90.idb, but it doesn't helped.

What additional actions have I to carry out?


回答1:


Have you turned on Enable Unmanaged Code Debugging in your C# project?




回答2:


I'll throw in additional answer in case someone will come by looking for solution to this kind of problem:

If you are attaching a debugger through Debug>Attach To Process, before clicking "Attach" in the "Attach to Process" dialog, make sure to select the appropriate code type to which the debugger can be attached.



来源:https://stackoverflow.com/questions/765481/how-to-step-into-c-c-dll-from-c-sharp-application-while-debugging

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