microsoft / MIEngine

The Visual Studio MI Debug Engine ("MIEngine") provides an open-source Visual Studio Debugger extension that works with MI-enabled debuggers such as gdb and lldb.
MIT License
818 stars 219 forks source link

Support vaguely named variables in VariableManager's cache #1272

Closed calgagi closed 2 years ago

calgagi commented 2 years ago

Better fix for https://github.com/microsoft/vscode-cpptools/issues/8760

Improves on https://github.com/microsoft/MIEngine/pull/1271 by storing duplicate variable names as "{name} #{uniqueNumber}".

So, if you have 2 variables named a, you would get a and a #2 in the variables window.

image

This also simplifies VariableManager's cache into one dictionary.