Intellij debugging: how to inspect member variables of a class that implements Map?

Viewed 158

Intellij debugging: how to inspect member variables of a class that implements Map? e.g.,

public class MyMap implement java.util.Map<String, Object> {
    private Object foo;
    private Object bar;

    ....


}


MyMap myMap = new MyMap();
myMap .put("hello", "world");

The debugger show only the entries in the map.

myMap (MyMap@123) size=1
   "hello" --> "world"

How to show the values of member variables foo and bar?

1 Answers

Try disabling the Alternate view for Collection classes in File | Settings | Build, Execution, Deployment | Debugger | Data Views | Java.

Related