vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Support for viewing variables in hex/bin mode when debugging

Open AlexanderNarbekov opened this issue 3 years ago • 10 comments

VSC has this support since version 1.50: https://code.visualstudio.com/updates/v1_49#_contributable-context-menu-for-variables-view https://github.com/microsoft/vscode/issues/28025#issuecomment-722687806 But does the extension support it?( It doesn't work out of the box for me.)

AlexanderNarbekov avatar Nov 16 '20 13:11 AlexanderNarbekov

The extension does not contribute to the "debug/variables/context" yet.

I have marked this as a feature request. Thank you for letting us know it is available.

We will need to add

"contributes": {
    "menus": {
      "debug/variables/context": [
        {
          "command": "cpptools.<COMMAND>",
          "when": "debugConfigurationType == 'cppdbg'
        }
      ]
    }
  }

to our launch.json and implement the new <COMMAND>

https://github.com/microsoft/vscode-cpptools/blob/b4e2a8457f0d5a5a5c8222dc750d0d3fef8c12a4/Extension/package.json#L44

WardenGnaw avatar Nov 16 '20 19:11 WardenGnaw

hi,any update for this

heartacker avatar Jan 26 '21 01:01 heartacker

hi,that is great to have this feature when debuging

heartacker avatar Mar 05 '21 04:03 heartacker

Is this still not possible? Doing it one by one in the watch window is painful, especially when the values are deep inside structs.

Normal VisualStudio has had this feature for eons

audetto avatar May 05 '21 09:05 audetto

Having this feature available would be so useful.

hwmaier avatar Aug 13 '21 02:08 hwmaier

Make it happen, please!

zengderui avatar Sep 09 '21 05:09 zengderui

Being able to view a byte array as a list of hex values and not useless decimals would be great 😊

mika76 avatar Oct 14 '21 16:10 mika76

Make it happen, please!

PterX avatar Nov 12 '21 12:11 PterX

Please implement it. Who even uses octal in this day and age?

alexolog avatar Dec 18 '21 02:12 alexolog

Duplicate of #557

jmbo avatar Sep 08 '22 05:09 jmbo