Mac OS - Hit Breakpoint in dynamic library
Is it possible to "break" in a dynamic library? I'm using Qt Creator 4.1.0 (based on Qt 5.7.0) and my OS is OSX Yosemite version 10.10.5. The app and dynamic libs are both debug builds.
If I set a breakpoint in my application code before a library function is called, I can then step through the library code. However; I cannot set and hit a breakpoint in a dynamic library.
Any help is appreciated.
Just an update. Not sure what I did, but there was a brief time where breakpoints started working. This lasted about a week, and then stopped after a made some changes to the dynamic library.
The dynamic library is definitely a debug build. The frustrating thing is a know now it's possible, but I have no idea how to make it work consistently.
VRonin last edited by
are they in the same project?
m.sue last edited by m.sue
you usually cannot set breakpoints if you (why ever) do not rebuild the dynamic library after your changes, i.e. the source does not match the lib.
The dynamic libraries are built outside of the Qt project. I use the Qt "Add Library" wizard to point to the libraries.
As I mentioned in my first post, if I set a breakpoint in the Qt code just before a library function is called I can single step through the dynamic library code.
What I can't do is place a breakpoint in the library code, start a debug session, and hit a breakpoint.
Not sure why it worked for a brief time and now it stopped.