How to sort properties by name in IntelliJ IDEA debugger?

6.1k Views Asked by At

Is there any way to sort the properties of an object by their names when using the Java debugger?

For example, I'm seeing this:

intellij debugging view

And I'd like to see this:

debugging ordered

2

There are 2 best solutions below

4
On BEST ANSWER

There is no separate option for sorting only fields alphabetically, but IDEA provides the feature "Sort Values Alphabetically" in the debug tool window.

It sorts both variables and their members in alphabetical order.

Before: enter image description here

After: enter image description here

0
On
  • Ultimate 2019.3
  • Open services
  • Click on the left on the 'wheel' settings.
  • Activate sort values alphabetically.

2 screen dumps to help the reader to find the configuration. enter image description here

enter image description here