Details
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) }