diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp index fed76e6a33e..3be605542ef 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp @@ -83,6 +83,8 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio void LocalQmlProfilerRunner::start() { + QTC_ASSERT(!m_configuration.socket.isEmpty() || m_configuration.port.isValid(), return); + StandardRunnable runnable = m_configuration.debuggee; QString arguments = m_configuration.socket.isEmpty() ? QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices,