aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qqmldebug.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-10-10 13:32:38 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-05 12:26:46 +0100
commit5375c095c3eb71c669053c4ca569a960dc76fabf (patch)
treebd3d71c52eeebdcdce22644505632e9ab45eceda /src/qml/debugger/qqmldebug.h
parentea90e7ec3449de7164a1acc91bd35847ec92d783 (diff)
QmlDebug: Provide public method for starting a debug server
With QQmlDebuggingEnabler::startTcpDebugServer you can create a debug server for debugging or profiling also without the qmljsdebugger command line argument. Change-Id: I642f73680585f9c7578762bcc0b247c736fe1338 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/debugger/qqmldebug.h')
-rw-r--r--src/qml/debugger/qqmldebug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/debugger/qqmldebug.h b/src/qml/debugger/qqmldebug.h
index 876d0683ce..fc22b295a6 100644
--- a/src/qml/debugger/qqmldebug.h
+++ b/src/qml/debugger/qqmldebug.h
@@ -42,6 +42,8 @@ QT_BEGIN_NAMESPACE
struct Q_QML_EXPORT QQmlDebuggingEnabler
{
QQmlDebuggingEnabler(bool printWarning = true);
+ static bool startTcpDebugServer(int port, bool block = false,
+ const QString &hostName = QString());
};
// Execute code in constructor before first QQmlEngine is instantiated