Watching variables contents in Eclipse IDE

后端 未结 4 447
梦如初夏
梦如初夏 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 03:52

    You can do so by these ways.

    Add watchpoint and while debugging you can see variable in debugger window perspective under variable tab. OR Add System.out.println("variable = " + variable); and see in console.

提交回复
热议问题