data breakpoints in java/eclipse

后端 未结 6 1882
梦谈多话
梦谈多话 2020-12-08 06:52

when developing C++ with VS you have this amazing feature of data breakpoints, which trigger when the data at a certain address in memory changes.

is there a similar

6条回答
  •  心在旅途
    2020-12-08 07:28

    You can set a watchpoint on a field: put the cursor at the line where the field is being declared and select the menu Run -> Toggle Watchpoint
    or just set a breakpoint by double-clicking at the left margin on that line.

    You can change the properties of the watchpoint like suspend on field access or suspend on field modification after adding it. Just right-click on the watchpoint at the left margin and select Breakpoint Properties...

    Search the help for watchpoint to get more information:

    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. ...

提交回复
热议问题