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. How to compile .pdb on release?
Forum Updated to NodeBB v4.3 + New Features

How to compile .pdb on release?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 895 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.
  • CesarC Offline
    CesarC Offline
    Cesar
    wrote on last edited by
    #1

    I'm compiling on Visual Studio 2022, Qt 6.3.1

    The .pdb is being generated only for debug, how i could set it to also be compiled on release?

    1 Reply Last reply
    0
    • CesarC Offline
      CesarC Offline
      Cesar
      wrote on last edited by
      #6

      I have found it, under c/c++ -> all options -> debug information format -> Program Database (/Zi) now it generates the .pdb

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        If you use CMake use 'RelWithDebInfo', for qmake I don't know but you can set the generation of the debug information in the compiler and linker options

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        2
        • B Offline
          B Offline
          Bonnie
          wrote on last edited by
          #3

          For qmake, just CONFIG += force_debug_info

          CesarC 1 Reply Last reply
          2
          • B Bonnie

            For qmake, just CONFIG += force_debug_info

            CesarC Offline
            CesarC Offline
            Cesar
            wrote on last edited by Cesar
            #4

            @Bonnie said in How to compile .pdb on release?:

            For qmake, just CONFIG += force_debug_info

            Perdon but where should i add this info?
            I tried adding it on properties -> qt project settings -> qmake -> additional command arguments -> CONFIG += force_debug_info

            B 1 Reply Last reply
            0
            • CesarC Cesar

              @Bonnie said in How to compile .pdb on release?:

              For qmake, just CONFIG += force_debug_info

              Perdon but where should i add this info?
              I tried adding it on properties -> qt project settings -> qmake -> additional command arguments -> CONFIG += force_debug_info

              B Offline
              B Offline
              Bonnie
              wrote on last edited by Bonnie
              #5

              @Cesar By qmake we mean .pro file.
              If you use Visual Studio as IDE and don't have a .pro file then you just do what @Christian-Ehrlicher 's link says.

              1 Reply Last reply
              0
              • CesarC Offline
                CesarC Offline
                Cesar
                wrote on last edited by
                #6

                I have found it, under c/c++ -> all options -> debug information format -> Program Database (/Zi) now it generates the .pdb

                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