vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

Prevent truncation of values in the Debug Watch #1052

Open cmrschwarz opened 6 months ago

cmrschwarz commented 6 months ago

When copying a somewhat longer value (like 20 bytes) from the Debug Watch Window, the value is truncated with [...].

This issue was already reported downstream for rust here.

Microsoft explains the api to fix this here (comment).

Cpptools has resolved the same issue here.

This frequently occurs in rust when working with string data that is encoded in a byte slice ([u8]), which is (correctly) displayed as a list of integers, not a string. I often find myself wanting to copy out this data e.g. to put it into some decoding tool. Even a 20 character 'string' already gets truncated, killing this usecase.

Thank you for all the work you put into this great extension, especially the rust / cargo support is miles ahead of every other debug adapter I tried.