IntelliJ IDEA 2020.3 Help

Java

File | Settings | Build, Execution, Deployment | Debugger | Data Views | Java for Windows and Linux
IntelliJ IDEA | Preferences | Build, Execution, Deployment | Debugger | Data Views | Java for macOS
Ctrl+Alt+S
Settings

Use this page to define the way data is displayed in the Java debugger.

ItemDescription
Autoscroll to new local variables

Automatically scrolls to new variables that appear in the scope when stepping.

Predict condition values and exceptions based on data flow analysis.

Enables editor hints for boolean expressions or exceptions that are known beforehand based on information from data flow analysis. For more details, see Inline variables view.

Show
  • Declared type: shows the type of the variable that holds the reference to the object.

  • Synthetic fields: shows synthetic fields (for example, compiler-generated fields of inner classes).

  • $val fields as local variables: shows outside variables used in anonymous classes as if they were local. Requires Synthetic fields.

  • Fully qualified names: shows fully qualified names for actual and declared types.

  • Object id: provides the ID of the particular instance, for example, java.util.ArrayList@798. For ID to be displayed, the Show Types option needs to be enabled.

  • Static fields: shows static fields in the Variables tab and tooltips.

  • Static final fields: shows static final constants in the Variables tab and tooltips. Requires Static fields.

Show type for stringsShows type for java.lang.String instances. When disabled, this type can be identified by the enclosing double quotes.
Show hex value for primitivesAdds hexadecimal format for byte, short, int, long, and char types. When enabled, both decimal and hexadecimal formats are shown.
Hide null elements in arrays and collectionsExcludes null references when displaying the contents of arrays and classes that implement Collection (not applicable to descendants of Map ).
Auto populate Throwable object's stack traceWhen the program is suspended after throwing an exception or error, its stack trace doesn't have any elements in it yet. For the stack trace to be populated, you have to call getStackTrace() on this Throwable. When Auto populate Throwable object's stack trace is enabled, IntelliJ IDEA does this for you.
Enable alternative view for Collection classesSelect this option to display contents of classes that implement Collection, Map, or List in a more convenient format (for example, to display each map entry as a key-value pair).
Enable toString() object view

Allows you to configure which classes use the result of toString() as their display value. When specified through fully qualified class names, this option applies to the descendants of these classes as well. You can also define a class pattern, using regular expressions syntax, for example:

  • *.Test: all classes called Test regardless of the package

  • javax.swing.*: all code in the javax.swing package and all its subpackages

  • ?est.Tes?: all classes starting with Tes followed by any letter in packages starting with any letter followed by est

  • *.T*: all classes starting with T in all packages

Last modified: 31 March 2021