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
The Copy Value command in the context menu on the Variables pane when debugging does not copy the entire string if the string length is larger than 64. This feature request is for the extension to do the needful to get the entire string contents in such cases.
changed the title [-]"Copy value" on strings with size larger than 64 should copy the entire string regardless of the maxStringLen setting[/-][+]debug: "Copy value" on strings with size larger than 64 should copy the entire string regardless of the maxStringLen setting[/+]on Jun 3, 2020
changed the title [-]debug: "Copy value" on strings with size larger than 64 should copy the entire string regardless of the maxStringLen setting[/-][+]debug: "Copy value" need not respect maxStringLen setting[/+]on Jun 3, 2020
We could also consider applying relaxed limits to nested strings if the number of nested children is low, which would cover pointers, interfaces, short slices/maps/arrays and structs with only a few members.
Activity
[-]"Copy value" on strings with size larger than 64 should copy the entire string regardless of the maxStringLen setting[/-][+]debug: "Copy value" on strings with size larger than 64 should copy the entire string regardless of the maxStringLen setting[/+][-]debug: "Copy value" on strings with size larger than 64 should copy the entire string regardless of the maxStringLen setting[/-][+]debug: "Copy value" need not respect maxStringLen setting[/+]polinasok commentedon Jun 21, 2021
This has been addressed with recent dlv-dap changes in the following way.
Partially loaded string

is reloaded with a larger limit of 4096 when using "Copy Value":
This doesn't apply to strings nested within an outer variable:

"Copy Value" returns
We could also consider applying relaxed limits to nested strings if the number of nested children is low, which would cover pointers, interfaces, short slices/maps/arrays and structs with only a few members.
hyangah commentedon Jun 21, 2021
I wish #112 was sorted out before deciding how to present value of *string and "Copy Value".
hyangah commentedon Nov 23, 2021
Closing since the original issue is already addressed.