diff --git a/share/qtcreator/qml/qmlobserver/main.cpp b/share/qtcreator/qml/qmlobserver/main.cpp
index 2adfc2605fd34a071cd5ff9bff3933187771510b..464b6a83a8a6354b9f69afa21db76623e3b428e8 100644
--- a/share/qtcreator/qml/qmlobserver/main.cpp
+++ b/share/qtcreator/qml/qmlobserver/main.cpp
@@ -50,6 +50,7 @@
 #include <QDebug>
 #include <QMessageBox>
 #include "qdeclarativetester.h"
+#include "private/qdeclarativedebughelper_p.h"
 
 QT_USE_NAMESPACE
 
@@ -361,6 +362,9 @@ int main(int argc, char ** argv)
     if (stayOnTop)
         wflags |= Qt::WindowStaysOnTopHint;
 
+    // enable remote debugging
+    QDeclarativeDebugHelper::enableDebugging();
+
     QDeclarativeViewer *viewer = new QDeclarativeViewer(0, wflags);
     viewer->setAttribute(Qt::WA_DeleteOnClose, true);
     if (!scriptopts.isEmpty()) {