7#include <QtCore/QPluginLoader>
8#include <QtCore/QCborArray>
9#include <QtCore/QCoreApplication>
11#include <QtCore/QDebug>
12#include <QtCore/QDataStream>
14#include <private/qcoreapplication_p.h>
15#include <private/qqmlengine_p.h>
25int QQmlDebugConnector::s_dataStreamVersion = QDataStream::Qt_4_7;
39 arguments = appD->qmljsDebugArgumentsString();
46void QQmlDebugConnector::setPluginKey(
const QString &
key)
51 qWarning() <<
"QML debugger: Cannot set plugin key after loading the plugin.";
64QString QQmlDebugConnector::commandLineArguments()
79 if (!
params->arguments.isEmpty()) {
81 "QML Debugger: Ignoring \"-qmljsdebugger=%1\". Debugging "
82 "has not been enabled.").arg(
params->arguments);
89 if (!
params->pluginKey.isEmpty()) {
90 params->instance = loadQQmlDebugConnector(
params->pluginKey);
91 }
else if (
params->arguments.isEmpty()) {
94 static const int connectorBegin = int(strlen(
"connector:"));
97 if (connectorEnd == -1)
98 connectorEnd =
params->arguments.size();
100 params->instance = loadQQmlDebugConnector(
params->arguments.mid(
102 connectorEnd - connectorBegin));
104 params->instance = loadQQmlDebugConnector(
111 const auto metaData = metaDataForQQmlDebugService();
127QQmlDebugConnectorFactory::~QQmlDebugConnectorFactory()
132 params->pluginKey.clear();
133 params->arguments.clear();
136 params->instance =
nullptr;
142#include "moc_qqmldebugconnector_p.cpp"
std::vector< ObjCStrongReference< CBMutableService > > services
\inmodule QtCore\reentrant
static QObjectPrivate * get(QObject *o)
static QQmlDebugConnector * instance()
static std::atomic< bool > qml_debugging_enabled
\qmltype QtObject \instantiates QObject \inqmlmodule QtQml
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
#define Q_QML_DEBUG_PLUGIN_LOADER(interfaceName)
static QString keyString(int sym, QChar::Category category)
QLatin1StringView QLatin1String
#define QStringLiteral(str)
\inmodule QtCore \reentrant
QQmlDebugConnectorParams()
QQmlDebugConnector * instance