When issuing a SetVariable request or an Evaluate request, the response contains the type of the new value if supportsVariableType is negotiated upon DAP initialization. However, it is currently not returned:
From a client's perspective the type is very important as SetVariables responses might return a different type than the original variable, let alone Evaluate which can return an arbitrary type.
Dlv Version: 1.9.1Go Version: 1.16Expected Result: EvaluateResponse/SetVariablesResponse contains the type of the variable.
Actual Result: Type is not returned at all.
When issuing a
SetVariable
request or anEvaluate
request, the response contains the type of the new value ifsupportsVariableType
is negotiated upon DAP initialization. However, it is currently not returned:https://github.com/go-delve/delve/blob/6440b3ba9216cb936f43318b96df540cf56b216f/service/dap/server.go#L2642-L2644
From a client's perspective the type is very important as SetVariables responses might return a different type than the original variable, let alone Evaluate which can return an arbitrary type.
Dlv Version:
1.9.1
Go Version:1.16
Expected Result: EvaluateResponse/SetVariablesResponse contains the type of the variable. Actual Result: Type is not returned at all.