Can I debug shared dll from another process?
In VS, you have the ability to attach to processes and to debug the DLL which you currently are working on. I know that CLion can be attached to processes, but it seems like there isn't such functionality to debug DLLs.
请先登录再写评论。
This is a problem I am stumbling over also .
I have an old exe written in 23 years old development environment that shall use a dll, with a pure virtual interface. That works.
But I can't debug the dll as clion wants an exe to start with. And the power++ exe can't be debugged !
Visual C++ can do the job. Now we must create with cmake a Visual C++ project. Very annoying.
@Tvie There is an easy (but still annoying) solution. You can use the Visual Studio generator in CMake to generate the build project. The build project is a standard .vcxproj which you can use to debug with. For me this workaround worked
Thank you for you comment.
I know this possibility.
But there must be a Visual Studio IDE installed and an extra compile step is required. This is annoying indeed. And colleagues have to learn Visual Studio. Also annoying. We do in the moment a lot to get rid of Microsoft tools, even if they are getting better in the meantime and also shift to Linux.
The "only thing" that is required is that LLDB doesn't want to debug the exe, which is not in the project, and just debug what the project knows, the dll.
Hi!
It should be possible to attach to any process and, given it uses your DLL, and the DLL has the debug info available, you should be able to place breakpoints to the DLL's code. Does it work like this for you?
No, this is exactly what doesn't work with clion but works with Visual Studio C++
I have sent you an email with example screen shots.