microsoft / microsoft/vscode-cpptools
display utf-8 characters on debug watch panel
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
From @KuddLim on July 26, 2017 8:27
- VSCode #Version: 1.14.2
- OS Version: LMDE 2 Betsy x86_64
Steps to Reproduce:
- Make a simple c++ project
- declare std::string (or std::wstring) and put some CJK string to it.
- Launch gdb session
- Watch variable
Reproduces without extensions: Yes
in vscode, variables are represented in numerics

in gdb, variable are represented correctly,

Here's the content of ~/.gdbinit
set target-wide-charset UCS-4
Copied from original issue: Microsoft/vscode#31442
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the C++ GDB session with a std::string or std::wstring containing CJK text, using the watch panel and the referenced ~/.gdbinit setting. Compare the VS Code variable display with GDB's output; done means the watch panel displays the characters rather than numeric values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100