You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify the expected variables start/count behavior #571
Currently, the specification doesn't describe the expected DAP server behavior when the start or count in the Variables request is out of range.
Some debuggers return an error when the count is greater than the number of available variables, others return fewer variables than requested.
Similarly, different DAP server interpret the namedVariables and indexedVariables fields in the Variable type differently.
Some of them return non-zero variablesReference with a zero namedVariables (indexedVariables is absent).
The non-zero variablesReference suggests that children can be retrieved.
The zero namedVariables suggests that the variable has no children.
Could you please add the expected behavior/contract to the specification?
I believe it will make writing a generic DAP client easier.
the specification doesn't describe the expected DAP server behavior when the start or count in the Variables request is out of range.
Because the number of namedVariables is always optional, I agree we can clarify this.
Some of them return non-zero variablesReference with a zero namedVariables (indexedVariables is absent).
The non-zero variablesReference suggests that children can be retrieved.
The zero namedVariables suggests that the variable has no children.
...unless indexedVariables is also set. But I would say a server that returns 0 namedVariables if there actually are namedVariables has a bug, it should just omit the property if it doesn't know it.
Activity
connor4312 commentedon Dec 18, 2025
Because the number of
namedVariablesis always optional, I agree we can clarify this....unless
indexedVariablesis also set. But I would say a server that returns0namedVariables if there actually are namedVariables has a bug, it should just omit the property if it doesn't know it.fix: clarify behavior of start/count in variablesarguments
fix: clarify behavior of start/count in variablesarguments (#580)
Change handling of over-long DAP variables requests
Change handling of over-long DAP variables requests
Change handling of over-long DAP variables requests