The method described in the previous section only creates a static library and cannot be debugged because creating a static library project directly is not an executable file.
The method that this article describes creates a static library breakpoint that works when you debug.
In order to be able to debug a static library, it should be in an executable project (for example, single View application) and then add a static library inside it, adding the method as shown:
Click on the project configuration, in the lower part there is a +, click to select the static library then create.
Once created, you will find two more folders in your project:
This is the new static library.
You can find two projects to choose from:
The first is the executable project, the second is the static library, if you want to compile the static library, select the second one, follow the previous article, and if you want to debug a static library, select the first, the header file that contains the static library.
"Debug required configuration for static libraries"
To execute the project's build phases, add a static library of projects and. A Files:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
(103) Debugging of Static library (. a)