Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30836

Cannot prevent Qt Creator from using CDB debugger when MinGW is specified in CMakePresets.json

XMLWordPrintable

    • Windows
    • 968051eb7 (master)

      See attached project, which is based on https://doc.qt.io/qtcreator/creator-build-settings-cmake-presets.html#mingw-example - I simply changed the Qt version number and specified a Debug build.

      {
        "version": 1,
        "configurePresets": [
          {
            "name": "mingw",
            "displayName": "MinGW 11.2.0",
            "generator": "MinGW Makefiles",
            "binaryDir": "${sourceDir}/build-debug",
            "cmakeExecutable": "C:/Qt/Tools/CMake_64/bin/cmake.exe",
            "cacheVariables": {
              "CMAKE_BUILD_TYPE": "Debug",
              "CMAKE_PREFIX_PATH": "C:/Qt/6.5.5/mingw_64"
            },
            "environment": {
              "PATH": "C:/Qt/Tools/mingw1120_64/bin;$penv{PATH}"
            }
          }
        ]
      }
      

       

      Compiling and running work fine, and the Clang code model can understand the project. However, Qt Creator tries to use CDB for debugging, and there seems to be no way to change it:

        1. qtc-cmake-presets-wrong-debugger.png
          21 kB
          Sze Howe Koh
        2. project-with-mingw-preset.zip
          1 kB
          Sze Howe Koh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cadam Cristian Adam
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes