java - Eclipse Luna - Cannot watch variables in HashMap, errors during the evaluation -


here test code :

import java.util.hashmap; import java.util.map;  public class tester {     public static void main(string[] args) {         map<string, integer> map = new hashmap<string, integer>();         map.put("abc", 1); //breakpoint here     } } 

normally in debug mode, when mouse hovering above variable, value displayed. seems of variables in hashmap not display value when mouse hovers.

in put method of hashmap, of members of map evaluation errors: enter image description here

why there many <error(s)_during_the_evaluation>? caused these errors?

the reason beyond bytecode (.class files) used eclipse debugger doesn't contain information method parameters name. that's way jdk compiled default.

the eclipse debugger implements workaround method parameters, naming them "arg0", "arg1", etc. , enabling inspect them in "variables" view. unfortunately, don't think there such workaround local method variables...

some other tickets in stackoverflow advise rebuild jre based on source code of jdk, e.g.: debugging not able inspect variables.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -