0

I am using Eclicpse to develop a static library made of functions that I use often. I have done so creating a "C++ -> Static Library" project in my workspace.

In the same workspace I have created an other project "Test" that I use to test that my functions work as expected. I have linked the libraries to this project and I am able to use the library in my code.

One of my functions has some problems and I would like to debug it. If I run "Debug" in Eclipse on my test project I can't however "step in" the function that is causing problems.

How can I achieve this? Alternatively which is a good way by which I can test and debug my static libraries in Eclipse?

2
  • 1
    Do the test application link with the debug build of the library? Commented Sep 20, 2012 at 8:09
  • @JoachimPileborg if it's not done automatically by eclipse probably not. I usually link to the release version.. Commented Sep 20, 2012 at 8:23

1 Answer 1

1

You need to compile the static libraries with debug information.

Go to [Properties] -> [C/C++ Build] -> [Settings] -> [GCC C++ Application] -> [Debugging] and turn on debugging and make sure the build is set to debug configuration.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.