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 ae9b48c4b1f417fc72997dd7709fd8d394e5a377..d73c1391ca83d4ab064a51e77826d28f1cbbea52 100644 (file)
@@ -207,6 +207,7 @@ struct Scope
         name(name),
         variablesReference(variablesReference),
         namedVariables(namedVariables),
+        indexedVariables(0),
         expensive(false)
     {}
 };
index df0590159106667b2fd236c60fef9882184b23aa..13c68c9d17d082f03ab58408c65c3df5e0e402f1 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;
 }