I have a Xcode project for library arith. I could build it with debug configuration, and I need to debug it. How can I do that?
The ideal method would be to set up a test
I could find a way to debug dynamic library in Xcode.
Now, you should be able to link the execution binary to the library. For running, you need to copy the dynamic library to the directory where the execution binary is located.
You need to set the breakpoints both arith/usearith. You can run debugger in arith and use the step into to debug the code in a arith project.
I faced the same problem and no one of the previous answer worked for my case so I share my solution (for Xcode):
If you need to debug a c/c++ dylib which is loaded by an external (executable) program: