Solved
how to view debug variables in hex (VSCode with STM32CubeIDE extension)
There does not seem to be any way of viewing a debug variable in hex.
The closest workaround is to prefix (void*) before the expression in the watch window.
This is no good for viewing an array of hex digits like for example a CAN bus message.
