Display PathBuf as String #8
oneElectron
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
I think this is doable. We always serialize strings as bytes, and only decode them as utf8 in indexer. So if it can't decode properly we can display it as bytes. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that it's early days for the project, and I don't know how difficult this may be to implement.
Use Case
I have a project that works a lot with the file system.
For my project it would be nice if FireDBG displayed PathBufs as strings, instead of as the underlying bytes.
Some Concerns
I am aware that this would require some discussion on when FireDBG should decide to stringify a type.
I am also aware that this might be somewhat difficult, given that PathBufs are stored as OsStrings, which means they might not be valid UTF-8 like normal Strings.
Beta Was this translation helpful? Give feedback.
All reactions