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

windeployqt/macdeployqt breaks debugging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • Qt Creator 4.5.0, Qt Creator 4.5.1
    • Debugger

    Description

      windeployqt/macdeployqt breaks debugging the debug builds.

      On my Windows 10 system any QString variable contents are not visible anymore ("non-accessible"). Some breakpoints does not work.

      On my Mac OS X system none breakpoints works. And it always show the assembly code only.

      I use the following pri file to deploy libraries.

      # Deploying Qt binaries
      isEmpty(TARGET_EXT) {
          win32:      TARGET_CUSTOM_EXT = .exe
          macx:       TARGET_CUSTOM_EXT = .app
          unix:!macx: TARGET_CUSTOM_EXT =
      } else {
          TARGET_CUSTOM_EXT = $${TARGET_EXT}
      }
      
      win32 {
          DEPLOY_COMMAND = windeployqt
          DEPLOY_OPTIONS = --no-compiler-runtime --no-translations
          !isEmpty(DEPLOYQT_QMLDIR) DEPLOY_OPTIONS += --qmldir=$${DEPLOYQT_QMLDIR}
      
          CONFIG(release, debug|release) {
              DEPLOY_OPTIONS += --release
          }
      
      }
      
      macx {
          DEPLOY_COMMAND = macdeployqt
          DEPLOY_OPTIONS = -verbose=0
      # commented due to Qt bug: https://bugreports.qt.io/browse/QTBUG-48800
      #    CONFIG(debug, debug|release): DEPLOY_OPTIONS += -use-debug-libs
          !isEmpty(DEPLOYQT_QMLDIR) DEPLOY_OPTIONS += -qmldir=$${DEPLOYQT_QMLDIR}
      }
      
      !isEmpty(DEPLOY_COMMAND) {
          DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/$${DESTDIR}/$${TARGET}$${TARGET_CUSTOM_EXT}))
          QMAKE_POST_LINK += $${DEPLOY_COMMAND} $${DEPLOY_TARGET} $${DEPLOY_OPTIONS} $$escape_expand(\n\t)
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes