Reputation: 3559
Since PyCharm 2019.3 it is possible to view values as HEX in the debugger:
Is there a way to set HEX as default (not int)?
Upvotes: 0
Views: 1055
Reputation: 11
There is workaround for this.
There is Python type Renderers in options under Build, Execution, Deployment > Debugger. There you can add new Renderer, select int in type field and enter hex(self)
in When rendering a node: field.
It works as expected, at least in PyCharm 2023.1.2 (Pro).
Upvotes: 1
Reputation: 7619
Not yet, please comment/vote for https://youtrack.jetbrains.com/issue/PY-39557
Upvotes: 5