Skip to content

Commit 61bc1d8

Browse files
committed
Show client side debug information in debug builds
Eases the debugging in debug builds. In release no additional information is shown. Change-Id: I14b4a60235a0ca38e1350725e99242c456fdb290 Reviewed-by: Edward Welbourne <[email protected]>
1 parent f60f701 commit 61bc1d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/plugins/platforms/webgl/qwebglwebsocketserver.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,14 @@ void QWebGLWebSocketServer::onNewConnection()
286286
&QWebGLWebSocketServer::onTextMessageReceived);
287287

288288
const QVariantMap values{
289+
{
290+
QStringLiteral("debug"),
291+
#ifdef QT_DEBUG
292+
true
293+
#else
294+
false
295+
#endif
296+
},
289297
{ "sysinfo",
290298
QVariantMap {
291299
{ QStringLiteral("buildAbi"), QSysInfo::buildAbi() },

0 commit comments

Comments
 (0)