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. Not able to step into a static lib while debugging in Qt Creator
QtWS25 Last Chance

Not able to step into a static lib while debugging in Qt Creator

Scheduled Pinned Locked Moved General and Desktop
14 Posts 2 Posters 3.7k Views
  • 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.
  • D Offline
    D Offline
    Dolphin
    wrote on last edited by
    #1

    I have an exe calling a dll which calls methods from a static lib. All of a sudden I cannot step into the methods in the static lib when debugging. A collogue has experienced this but is not currently experiencing it with the same code as me so am wondering if there is a setting I am missing? None of the tool bar buttons work (step in, step out, step over). Having looked on the internet I can only see people asking about not being able to step into Qt dlls which is not what I need, all of the code is ours.

    It steps into some methods but not others, notably one I have just added - I tried deleting the build directories and rebuilding the whole lot in case it was just symbols not being generated but no joy.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you sure your library as well as your application are built in debug mode ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dolphin
        wrote on last edited by
        #3

        First thing I checked. As I say, it will step into some of the methods which is why I deleted the build directory and did complete re build in case it was just missing symbols

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Sorry, I meant that additionally to your application/dll,are you sure that the static library is also in debug mode ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

            All three things are my code so yes.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I forgot to ask, which version of Qt and Qt Creator are you using and on which platform ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                Windows 7, Qt 5.1, Creator 2.7.2, Visual Studio 2010

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Can you update Qt Creator to a more recent version ? Either 2.8.1 or 3.0RC1 ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    Dolphin
                    wrote on last edited by
                    #9

                    Been going through chemo, had not appreciated I'd got so out of date. 2.8.1 is behaving exactly the same :-(

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Sorry for that and hope you'll get better.

                      Strange, I just had it working but maybe it was with 5.1.1

                      The speed is up, Qt 5.2 and Qt Creator 3.0 are almost out, if you are adventurous you can try both RC1 (5.2 requires now Creator 3)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        Dolphin
                        wrote on last edited by
                        #11

                        No that did not work. If I move the call to the function I want to step through to after all the QML stuff has loaded can then step into it but the call is then in the wrong place so I am going to have to study this further. I never used to have a problem stepping into this code and it has not changed in a long time so I am very confused.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          By the way, what OS are you on ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            Dolphin
                            wrote on last edited by
                            #13

                            Sorry for the delay, I took advantage of a last minute invite to go to Egypt :-)

                            Using Windows 7.

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              Can't blame you :)

                              In between Qt 5.2 and Qt Creator 3.0 have been released, you should update and retry

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              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