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. Can't step into Qt code (MinGW)

Can't step into Qt code (MinGW)

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 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.
  • E Offline
    E Offline
    e79ene
    wrote on last edited by
    #1

    Hi,
    Debugging my application I can step into my own functions but not into the Qt library code.
    Stack view also shows no source related info for Qt library frames:
    @
    0 MainWindow::on_actionDebug_triggered mainwindow.cpp 20 0x40167e
    1 MainWindow::qt_metacall moc_mainwindow.cpp 72 0x40179a
    2 ZN11QMetaObject8metacallEP7QObjectNS_4CallEiPPv C:\QtSDK\Desktop\Qt\4.7.4\mingw\lib\QtCored4.dll 0 0x6a20611c
    3 ZN11QMetaObject8activateEP7QObjectPKS_iPPv C:\QtSDK\Desktop\Qt\4.7.4\mingw\lib\QtCored4.dll 0 0x6a216ab8
    4 ZN7QAction9triggeredEb C:\QtSDK\Desktop\Qt\4.7.4\mingw\lib\QtGuid4.dll 0 0x68f5f630
    @

    From the beginning:

    1. I installed Qt SDK version 1.1.4 with Desktop Qt 4.7.4 MinGW & Qt Sources 4.7.4
    2. Added "C:\QtSDK\QtSources\4.7.4" as Qt Sources in Qt Creator debugger options
    3. Created default Qt GUI project
    4. Build it in debug mode & started debugging.

    Unfortunately I can debug Qt code only in disassembler view.
    Does anyone know how to solve this problem?
    Thanks.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      You can't debug Qt libraries in this case.
      Because you use pre compiled binary libraries

      I have got a same problem before but cant find answer,
      if somebody knows how, it's will be great.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        e79ene
        wrote on last edited by
        #3

        It works fine with Qt 4.7.3.
        I wonder is it possible to make it work with Qt 4.7.4 also?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          Did you add the path to the Qt sources inside the Creator debugging options?

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • E Offline
            E Offline
            e79ene
            wrote on last edited by
            #5

            bq. 2. Added “C:\QtSDK\QtSources\4.7.4” as Qt Sources in Qt Creator debugger options

            I think the problem is not in the sources location.
            When debugging with Qt 4.7.3 stack view shows source file names even when sources location is not setup.
            With Qt 4.7.4 dll names are shown in the stack instead of source file names.

            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