microsoft / vscode-python-debugger

Python debugger (debugpy) extension for VS Code.
https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy
MIT License
57 stars 24 forks source link

Support representation change of debug variables, e.g. base 16 instead of base 10 #215

Closed Febbe closed 5 months ago

Febbe commented 7 months ago

I am currently debugging memory and its data from a RISC-V processor via cocotb, but all values are displayed with base 10. This even happens if it's raw data. This it how it looks: grafik

But I want to see those values in hexadecimal. In that example, it should show the values 0x160 and 0x180. My proposed fix would be to add the possibility to change the representation via the drop down menu:

grafik

Where I can change the representation of the given value.

paulacamargo25 commented 7 months ago

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

Febbe commented 7 months ago

Changed the title to be more general. I miss the view of variables in hexadecimal, but it would also be good, to change values to other bases, or to even classify them as array / string. Other IDE's like those from JetBrains or VS Community or Eclipse support this also.