Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugging a shared lib
Forum Updated to NodeBB v4.3 + New Features

Debugging a shared lib

Scheduled Pinned Locked Moved Qt Creator and other tools
12 Posts 4 Posters 4.7k 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.
  • M Offline
    M Offline
    mike4
    wrote on last edited by
    #1

    Hi
    how can I debug a shared lib in qtcreator? it stops somewhere in assembler of the main executable but never reaches my plugin (shared lib)
    Many thanks
    Michael

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Duck
      wrote on last edited by
      #2

      You'd link the library to a minimal executable with an

      @
      int main(...)
      {
      call_function_from_library();
      }
      @

      put a breakpoint at main, press F5, F11 etc..

      [EDIT: code formatting, please wrap in @-tags, Volker]

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mike4
        wrote on last edited by
        #3

        I don't want to link, my app IS a shared lib defined in the *.pro.
        I've reported this to bugs.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          How can a app be a shared library?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Duck
            wrote on last edited by
            #5

            A shared library is not an "app", and it cannot be debugged "stand alone", pretty much because you can't run it "stand alone" either.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mike4
              wrote on last edited by
              #6

              it's a X-Plane plugin but thanks anyway

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Duck
                wrote on last edited by
                #7

                Then your application is "X-Plane" and you debug this. At some point of time it will load the plugin, and you can debug that.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mike4
                  wrote on last edited by
                  #8

                  not working on Linux, reported bug

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

                    [quote author="mike4" date="1321784613"]not working on Linux, reported bug[/quote]

                    Do you mind to report back a link to the bug report, please.

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

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mike4
                      wrote on last edited by
                      #10

                      https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6520

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

                        Thanks.
                        You did notice the request for a debugger log in that ticke a few days ago?

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

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mike4
                          wrote on last edited by
                          #12

                          added log.

                          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