Skip to content

Latest commit

 

History

History
19 lines (9 loc) · 705 Bytes

TipsNTricks.md

File metadata and controls

19 lines (9 loc) · 705 Bytes

Tips and Tricks

How to view decimal-encoded values in IntelliJ/IDEA debugger

IntelliJ/IDEA can define custom renderers for most types, including long used to represent decimal numbers.

Use the following steps to add special renderer for decimals:

  1. Open Settings and search for "renderer". Pick "Java Type renderers" from the settings list.

  2. Switch "When expanding a node" radio button into "Use list of renderers". Define renderer for decimal. Use Decimal64Utils.toString(this) as renderer expression:

Define renderer image

  1. When viewing long value that contains decimal number expand your Decimal renderer:

Expand renderer image