Отладка приложения Qt с Xcode 11 и DataFormatter - PullRequest
0 голосов
/ 01 апреля 2020

Просмотр содержимого QString / QList et c. во время отладки приложения Qt в Xcode я установил lldbinit-Xcode для использования lldbbridge.py QtCreator. С предыдущей версией Xcode это работало.

Используя

  • Xcode 11.4
  • Qt 5.14.2 или 5.9.9
  • Qt Creator 4.11.2
  • macOS 10.15.4

lldbinit-Xcode content:

command script import /Development/Qt/Qt\ Creator.app/Contents/Resources/debugger/lldbbridge.py

Установите 'Файл инициализации LLDB' в Схеме проектов на 'lldbinit-Xcode 'показывает:

error: type summary add takes one or more args.
  File "<string>", line 1
    <class.__doc__
    ^
SyntaxError: invalid syntax
warning: The provided class does not exist - please define it before attempting to use this synthetic provider
@
lldbversion="lldb-1103.0.22.4
Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29)"@
@
state="enginesetupok"@
error: type summary add takes one or more args.
  File "<string>", line 1
    <class.__doc__
    ^
SyntaxError: invalid syntax
warning: The provided class does not exist - please define it before attempting to use this synthetic provider
Qt summary provider requires the pygdbmi module, please install using 'sudo /usr/bin/easy_install pygdbmi', and then restart Xcode.

В Qt Creator 4.10.0 была проблема с lldbbridge.py и версией lldb python, но это было исправлено (https://bugreports.qt.io/browse/QTCREATORBUG-22955).

При установке версии lldb python на 2 (defaults write com.apple.dt.lldb DefaultPythonVersion 2) не отображаются никакие ошибки, но также отсутствует содержимое QString.

Нужно ли также easy_install pygdbmi? Но в каком python в какое место установки?

...