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. Unable to debug Qt source in msvc since install Qt SDK
Forum Update on Monday, May 27th 2025

Unable to debug Qt source in msvc since install Qt SDK

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 3 Posters 2.9k 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.
  • Q Offline
    Q Offline
    qtnext
    wrote on last edited by
    #1

    Hi,

    I have installed the Qt SDK (and add after the Qt source in the maintenance tools) . But I can't now debug the Qt source. What do I need to do (I have checked autoexp.dat and it seems it's ok).

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bodzio131
      wrote on last edited by
      #2

      Hi,
      What do you mean that you can't debug? I'm asking because you mentioned autoexp.dat which is responsible for pretty-printing, and it's not required for debugging. Do you want to step inside Qt or you just want to see Qt objects structure (for example QString value inside watch)?
      Are you sure that you link with proper version of Qt binaries (with debug symbols and probably without optimizations)?
      Do you compile your project with debug symbols and without optimizations?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qtnext
        wrote on last edited by
        #3

        I need to step inside Qt source code. I have installed Qt sdk, Qt source after using maintenance tools. The strange things is that there is no pdb files in QtSDk ? Do I need to manually compile Qt to be able to debug Qt Source code ?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bodzio131
          wrote on last edited by
          #4

          I've just installed 4.6.3 and I have pdb files inside bin directory. Have you downloaded SDK for VisualStudio? I'm not sure but mingw version doesn't have pdb files.
          Other thing is that these pdbs are for true debug binaries, so I'm almost sure you need to build your project with strict debug configuration and link with *d4.dll Qt binaries (QtCored4.dll etc.).

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bodzio131
            wrote on last edited by
            #5

            It seems I misunderstood you. You used 'Qt SDK' package but I tried 'Qt libraries' package. You're right that QtSDK doesn't have pdb files, so I don't see other possibility than build debug version by yourself. Sorry I gave you misleading clue.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              [quote author="qtnext" date="1317988986"]I need to step inside Qt source code. I have installed Qt sdk, Qt source after using maintenance tools. The strange things is that there is no pdb files in QtSDk ? Do I need to manually compile Qt to be able to debug Qt Source code ? [/quote]

              Is it possible to install the sdk for msvc? If you copuld not make this choice, than this is your problem.
              You need to have the Qt libs compiled for the proper version of msvc, otherwise you will have problems.

              Vote the answer(s) that helped you to solve your issue(s)

              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