Eclipse debugger and collections

前端 未结 2 1727
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 10:18

I have some collections that I would like to analyze in the Eclipse debugger. I am interested in a particular attribute of each element.

Let\'s take an example with

相关标签:
2条回答
  • 2021-01-18 10:54

    I think, the Eclipse Debugger feature you are interested is called logical structures. You could define a logical structure in Eclipse preferences (Java/Debug/Logical structures), where you could write such an expression (hopefully), and then on the variables view you could replace the display of the list in the pop-up menu.

    See this blog post for basic ideas: http://www.javalobby.org/forums/thread.jspa?threadID=16736&messageID=91823528

    0 讨论(0)
  • 2021-01-18 10:57

    The Display View provides you with the ability to execute custom code at each breakpoint. Just read out your data structure at the breakpoint and print it out to the console.

    0 讨论(0)
提交回复
热议问题