microsoft / microsoft/vscode-cpptools

Debugger Registers view doesn't right-click copy the values correct from the HEX representation

Open
#10,270 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment
  • OS and version: Win 10 up to date
  • VS Code: 1.74.0
  • C/C++ extension: 1.13.7
  • OS and version of remote machine (if applicable): ---
  • GDB / LLDB version: ---
Bug Summary and Steps to Reproduce

Bug Summary: Debugger Registers view doesn't right-click copy the values correct from the HEX representation

Steps to Reproduce:

  1. Debug-step C/C++ code
  2. Open Registers view in the "Variables"
  3. Right-click on a register showing (typically) a hex value with leading 0's and then using A-F's not just 0-9's
  4. Do "Copy Value"
  5. Paste the value in some editor -> "invalid octal digit"
  6. Do it with a register value only using 0-9's after leading zeros -> the pasted value is wrong, obviously octal interpreted and then converted back to a wrong string.
  7. And with long SSE registers, having a '-' in the middle, other funny error messages are pasted ...

Requested Solution:

  • Copy the plain HEX strings as is and best prepend a "0x" in front, as this is what you usually want to use.
Debugger Configurations
-- not relevant, happens generally --
Debugger Logs
-- not relevant --
Other Extensions

No response

Additional Information

( I was redirected here from https://github.com/microsoft/vscode/issues/168633 )

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 issue in the Debugger Registers view while debugging C/C++ code, following the listed copy-and-paste steps. Trace the Registers view's "Copy Value" behavior; done means hexadecimal register values, including leading zeros and long SSE values, paste correctly with a 0x prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.