Watching variables contents in Eclipse IDE

后端 未结 4 441
梦如初夏
梦如初夏 2020-12-13 03:45

How can I watch the contents of several variables (for example, TreeSet\'s) simultaneously? I can watch contents of one TreeSet, clicking on it in \"Variables\" window, but

4条回答
  •  执笔经年
    2020-12-13 04:11

    You can add a watchpoint for each variable you're interested in.

    A watchpoint is a special breakpoint that stops the execution of an application whenever the value of a given expression changes, without specifying where it might occur. Unlike breakpoints (which are line-specific), watchpoints are associated with files. They take effect whenever a specified condition is true, regardless of when or where it occurred. You can set a watchpoint on a global variable by highlighting the variable in the editor, or by selecting it in the Outline view.

提交回复
热议问题