diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index e9a651e622fe31b9abdc44f758fe0bc2f5d6d3aa..9458bac9f3800aeb69efa9cbed9502e300230f8b 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -202,6 +202,8 @@ QString WatchData::toString() const
          str << "parent=\"" << parentIndex << doubleQuoteComma;
     if (row != -1)
          str << "row=\"" << row << doubleQuoteComma;
+    if (childCount)
+         str << "childCount=\"" << childCount << doubleQuoteComma;
     if (const int childCount = childIndex.size()) {
         str << "child=\"";
         for (int i = 0; i < childCount; i++) {