How to debug an external shared library in CLion 2017.2.2 ? (Library used is OpenCV)
Good evening,
I am using CLion 2017.2.2 and I am currently trying to debug my program which is linked to some OpenCV 3.3 shared libraries. When I am using a Debug configuration, my code is correctly being debugged but unfortunately the debugger doesn't go into the OpenCV shared libraries, which is what I would like to do.
I compiled OpenCV shared libraries outside a CLion project, but I linked them to my program through CMake using this CMakeLists.txt:

The headers are correctly recognized into the Header Search Paths of the project though. Both OpenCV and personal project are being generated with CMake -DCMAKE_BUILD_TYPE=Debug flag.
Am I missing something here ?
Please sign in to leave a comment.
Hi!
It's strange since this should work if the library is built with debug info.
To investigate the issue we need some additional information. Please enable debug logging by entering #com.jetbrains.cidr.execution.debugger into Help | Debug Log Settings, reproduce the problem (the moment when you try step into the library) and send the idea.log (Help | Show Log in Finder) to our email (clion-support at jetbrains.com). Do not forget to disable debug logging after that. Thanks in advance!