我有下面的代碼有沒有辦法在eclipse中檢查map/set條目?
Map<String, Employee> map1 = new HashMap<String, Employee>();
map1.put("delKey", new Employee());
map1.put("delKey1", new Employee());
當我在檢查MAP1 variables view
與show logical structure
我剛纔看到的值作爲員工不是一個對象,這樣我可以檢查進一步Employee對象像下面
有沒有一種方法,我可以調試eclipse中map/set條目下的鍵/值
當「顯示邏輯結構」打開時,這應該在Eclipse中工作。地圖顯示爲其Entry對象的集合。 –
查看[this](http://stackoverflow.com/questions/7275520/eclipse-debugging-hashmap-logical-structure-using-key-and-values-tostring-me)也有一些,很少有非常好的答案。 –