Fix variable count in Locals scope
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Tue, 21 Aug 2018 10:55:18 +0000 (13:55 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Tue, 21 Aug 2018 10:55:18 +0000 (13:55 +0300)
src/debug/netcoredbg/protocol.h
src/debug/netcoredbg/variables.cpp

index ae9b48c..d73c139 100644 (file)
@@ -207,6 +207,7 @@ struct Scope
         name(name),
         variablesReference(variablesReference),
         namedVariables(namedVariables),
+        indexedVariables(0),
         expensive(false)
     {}
 };
index df05901..13c68c9 100644 (file)
@@ -302,7 +302,7 @@ HRESULT Variables::GetScopes(ICorDebugProcess *pProcess, uint64_t frameId, std::
         m_variables.emplace(std::make_pair(variablesReference, std::move(scopeReference)));
     }
 
-    scopes.emplace_back(variablesReference, "Locals", frameId);
+    scopes.emplace_back(variablesReference, "Locals", namedVariables);
 
     return S_OK;
 }