Debug protocol: setVariable
identifies variables by display name
#10219
Labels
debug
Debug viewlet, configurations, breakpoints, adapter issues
feature-request
Request for new features or functionality
The new
setVariable
request identifies variables by display name.This is fragile because the name may have been generated by the adapter (e.g.
[N]
for array indices).There may also be more than one variable with the same name in the stack frame in languages that allow variable shadowing. For example, in C++ one can write
The debugger can see both, even though in C++ there's no way to access the outer one.
To make this work robustly, I would suggest adding an optional "handle" field into
Variable
, which gets round-tripped back to the adapter insetVariable
.The text was updated successfully, but these errors were encountered: