foxlog
V2EX  ›  Java

为何 debug 的时候 eclipse 能看到类里的内部变量信息,而 Jetbrains IDEA 不行

  •  1
     
  •   foxlog · Aug 10, 2015 · 4613 views
    This topic created in 3954 days ago, the information mentioned may be changed or developed.

    比如我在HashMap里put值做测试,在Eclipse里可以看到内部的table变量,如下图:
    image

    但是idea就看不到,如下图:
    image

    idea的compiler设置各种选中还是不选中都不起作用:
    image

    3 replies    2017-11-04 16:05:49 +08:00
    Ouyangan
        1
    Ouyangan  
       Aug 10, 2015
    我的可以啊...
    zacard
        2
    zacard  
       Aug 10, 2015
    idea:鼠标移过去就显示了
    jptiancai
        3
    jptiancai  
       Nov 4, 2017
    在下断点后,在 Variables 界面右击鼠标-->Customize Data Views --> 切换页签到 Java Type Renderders--> 新建一个 Renderder,在 Apply renderder to objects of type(fully-qualified name): 下输入 java.util.HashMap,保存即可
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3287 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:18 · PVG 08:18 · LAX 17:18 · JFK 20:18
    ♥ Do have faith in what you're doing.