How to step into C/C++ DLL from C# application whi

2019-01-18 09:16发布

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?

2条回答
霸刀☆藐视天下
2楼-- · 2019-01-18 09:37

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.

enter image description here

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-01-18 09:47

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

查看更多
登录 后发表回答