Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
1.01k stars 238 forks source link

Possibility to show integer values in hex, normal, or both? #977

Open basprins opened 8 months ago

basprins commented 8 months ago

Hi, I was wondering if it's possible to set cortex debug in a way where it will show both hex value and "natural" value representation? I often want to see a bunch of variables in hex, and others in base10. Now I am either constantly switching between hex/base10, or am I adding a bunch of watch variables as address,x to get the hex value while I am using the base10/natural representation.

If "hex mode" would show both, like the base10 value and the hex value between brackets e.g. that would be great (for me :))

basprins commented 8 months ago

And if anything can be changed here, would it also be possible to move the setting

"cortex-debug.registerUseNaturalFormat": false,

to some other place than settings.json?

I need the settings.json in git so that we can share settings. Now I constantly have to revert a file before committing.