View values in hexadecimal in pycharm variables view

Answered
Despite frantic searching I haven't been able to find a way to let pycharm display variable values in hexadecimal (opposed to the native default, e.g. int or string). In my case this has been particularly annoying when inspecting bytearray objects containing binary blobs which are represented as a string (in my case mostly empty box-characters and question marks).

Is there a way to view variable values as hex instead of the native default?
13
5 comments

+1. That's very ineffective to work with binary data formats and watch data in decimal notation instead of hex.

0

+1. The inability to set basic type display to hex is really annoying and, given how fantastic PyCharm is, I'm amazed this feature doesn't exist. While I can handle individual variables by adding watches such as "hex(my_variable)", it makes inspecting binary blobs, arrays of pointers, etc, really difficult.

0

Any update here? That's a really annoying "feature" having bytes values displayed as somehow cryptic strings impossible to analyse. :-(

0

You can switch to Hex or Binary using the context menu:

1

Of course I already saw that there is an option like this - but not available for byte array. 
Maybe I jumped onto the wrong ticket as Dave was complaining about basic types.

The ASCII character representation of bytes array values is really annoying:

Something that can be done to change that?

1

Please sign in to leave a comment.