Solved
stm32cubeide for vscode debug variable
In debug mode, the variables in the watch window are by default displayed in decimal format. I couldn't find a way to set it to display in hexadecimal format. I am using the jlink debugging configuration.
