Cutton Eye
Cutton Eye

Reputation: 3559

PyCharm - set "display as hex" in debugger as default

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

Answers (2)

Glyph Alex
Glyph Alex

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

user2235698
user2235698

Reputation: 7619

Not yet, please comment/vote for https://youtrack.jetbrains.com/issue/PY-39557

Upvotes: 5

Related Questions