Debugging static lib in Ubuntu
-
Hi,
I have two .pro files open.
One is my static lib i made for test, the other is a console app that (successfully) uses the static lib.
I set the startup project as the console app, and I set the dependency to the static lib (its a .a file in Ubuntu)
Question is: why isnt any breakpoint I set in the static lib ever hit?
The program runs just as if there are no breakpoints in the lib cpp file.
I also tried it by setting the lib as the startup app, with the executable I made as the console app as the debugging component.
Still no dice, I can set breakpoints in the static lib, but they are not honoured.
Must be some kind of newbie question, but right now the solution doesnt seem obvious. I would imagine its rather a pain (and therefore not normal) if you can't debug a static lib in this way.
I have the following in the pro file for the main app:
LIBS += ../libs/tcpserverlibstatic-build-desktop/libtcpserverlibstatic.a
PRE_TARGETDEPS = ../libs/tcpserverlibstatic-build-desktop/libtcpserverlibstatic.aWhat am I missing here?
Anyone?
-
Just checked in Windoze, too, it does the same thing for me -- breakpoints in the static lib will set but execution does not stop on them.
Something Im doing wrong, please?
-
Thanks for all the replies and offers of help (not)
I figured it out, eventually.
I'll be about as helpful in disclosing it as everyone was helping me!
-
You are welcome (not) ;)
What I mean is it is great you managed to solve your problem, but there is really no need to be sarcastic just because no one responded in the interval it took you to solve it. This is not paid customer support after all, everything is done by volunteers.
-
[quote author="nikkynakkynoonoo" date="1329954404"]Thanks for all the replies and offers of help (not)
I figured it out, eventually.
I'll be about as helpful in disclosing it as everyone was helping me![/quote]
Everyone on the forum here does support completely voluntarily and for free. Yelling at those people for the reason that you got no answer after four hours, will most probably make them ignore you in the future. Keeping your solution secret isn't going to help change their minds too.
Think about it and maybe you want to read http://www.catb.org/~esr/faqs/smart-questions.html and learn how to behave on a public forum next time you post something.