service/dap: use reloaded value
The only part of the reloaded value that was used was the Children. This caused a bug where the Time format string was reloaded, but it was not being displayed. Fixes go-delve/delve#3342
This commit is contained in:
parent
5f588d8927
commit
9873e0ef63
@ -2485,6 +2485,7 @@ func (s *Session) convertVariableWithOpts(v *proc.Variable, qualifiedNameOrExpr
|
|||||||
value += fmt.Sprintf(" - FAILED TO LOAD: %s", err)
|
value += fmt.Sprintf(" - FAILED TO LOAD: %s", err)
|
||||||
} else {
|
} else {
|
||||||
v.Children = vLoaded.Children
|
v.Children = vLoaded.Children
|
||||||
|
v.Value = vLoaded.Value
|
||||||
value = api.ConvertVar(v).SinglelineString()
|
value = api.ConvertVar(v).SinglelineString()
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
|
Loading…
Reference in New Issue
Block a user