I cannot set a watchpoint in Eclipse (Photon) using CDT.
According to this answer to this question about setting memory breakpoints in CDT, one should be able to set a watchpoint by doing the following:
- Highlight the variable in the editor, or select it in the Outline view.
- Click
Run > Toggle Watchpoint
.
However, no matter what I do the menu item Toggle Watchpoint is always disabled (greyed out).