microsoft / microsoft/vscode-cpptools
Debugger Registers view doesn't right-click copy the values correct from the HEX representation
Open
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:
- Debug-step C/C++ code
- Open Registers view in the "Variables"
- 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
- Do "Copy Value"
- Paste the value in some editor -> "invalid octal digit"
- 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.
- 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
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 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