Debugging a DLL which is in another solution on VS

2019-07-22 16:45发布

I'm am trying to debug a DLL which is called from a VC++ application, but cannot step-inside the DLL function because the DLL source is located in another solution project.

I have tried to set a break point right before the DLL function call but when I try to step-in it just passes right down.

I am aware that it is possible to just debug the DLL on its own and feed it arguments, but since there are many variables, I do not find it practical for debugging purposes.

Is there a way to debug a DLL that is separate from the Invoking Application as if it where a single solution file?

2条回答
戒情不戒烟
2楼-- · 2019-07-22 17:13

One thing you can do is start up your app outside of VS, open the solution with the DLL, and attach to the application.

查看更多
我想做一个坏孩纸
3楼-- · 2019-07-22 17:33

Build a debug version of the DLL and link to it in the debug configuration of your project. That should get you what you need. It should find the source of the DLL and you should be able to step into it.

查看更多
登录 后发表回答