Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debugging static lib in Ubuntu
Forum Updated to NodeBB v4.3 + New Features

Debugging static lib in Ubuntu

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nikkynakkynoonoo
    wrote on last edited by
    #1

    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.a

    What am I missing here?

    Anyone?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nikkynakkynoonoo
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nikkynakkynoonoo
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            [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.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved