IntelliJ IDEA 14.1.0 Help

Java

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

ItemDescription
Autoscroll to new local variables Select this option to automatically scroll to new variables that appear in the scope when stepping.
Auto tooltips for values Select this option to enable automatic display of tooltips for values.

A tooltip in this context is a pop-up that provides an alternative, sometimes a more convenient presentation of values in the Variables pane.

To illustrate, let's assume that there is a statement like this in your code:


String s = "Hello, World! \n Hello, World!";

When this statement is executed in the debugger, you'll see a line looking similar to this in the Variables pane:


s = {java.lang.String@62} "Hello, World! \n Hello, World!"

with the line break shown as\n.

If the Auto tooltips for values option is on and you click this line and then hold the mouse pointer on it, you’ll see a yellow area (the "tooltip") in which the value of s is shown as

Hello, World!
Hello, World!

with a real line break in place of\n.

If this option is disabled, you must press the Alt key to display a value.

ShowIn this section, select which elements you want the Debugger to display:
  • Declared type
  • Synthetic fields
  • $val fields and local variables
  • Fully qualified names
  • Object id
  • Static fields
  • Static final fields
Show hex value for primitives Select this option if you want numeric variables to be displayed in the hexadecimal format.
Hide null array elements Select this option if you want null array elements to be omitted.
Enable alternative view for Collection classes Select this option to display collections and maps in a more convenient format.
Enable toString() object view In this section, you can select classes if you need them and their descendants to be presented as a result of the toString() method call while debugging. Use the following controls:
  • For all classes that override toString() method: select this option to show all classes as toString().
  • For classes from the list: populate the list of classes to be shown as toString(), using theadd_class, add_class_pattern and the delete buttons. Use the check boxes next to the class names to temporarily enable or disable particular filters.
  • add_class: click this button to add a class to the list using the Choose Class dialog.
  • add_class_pattern: click this button to add a custom class filter using the New Filter dialog. To define a filter, enter a string pattern, e.g. *.Test, javax.swing.*, etc.
  • delete: click this button to remove a filter from the list.

See Also

Last modified: 14 July 2015