IntelliJ IDEA 2020.1 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.

Item

Description

Autoscroll to new local variables

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

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 strings

Shows type for java.lang.String instances. When disabled, this type can be identified by the enclosing double quotes.

Show hex value for primitives

Adds 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 collections

Excludes 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 trace

When 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 classes

Select 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: 8 April 2020