View values in hexadecimal in pycharm variables view

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?
2 comments
Comment actions Permalink

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

0
Comment actions Permalink

+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

Please sign in to leave a comment.