microsoft / microsoft/vscode-cpptools

display utf-8 characters on debug watch panel

Open
#918 16 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger help wanted
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:

  1. Make a simple c++ project
  2. declare std::string (or std::wstring) and put some CJK string to it.
  3. Launch gdb session
  4. Watch variable

Reproduces without extensions: Yes

in vscode, variables are represented in numerics
vscode

in gdb, variable are represented correctly,
gdb

Here's the content of ~/.gdbinit
set target-wide-charset UCS-4

Copied from original issue: Microsoft/vscode#31442

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.