Setting Memory Breakpoints in Eclipse

前端 未结 3 693
醉话见心
醉话见心 2021-01-17 12:50

How do you set memory breakpoints in Eclipse? That is, I would like to set a conditional breakpoint that triggers when the data at a given memory location changes.

3条回答
  •  不知归路
    2021-01-17 13:12

    Solution that works:

     1/ Select the variable representing the pointer you want to break on in a given context in the "Variables" tab
     2/ Right click, then select "Add Watchpoint (C/C++)
     3/ In the field "Expression to watch", just replace the name of the variable by the memory address to break on.
    

提交回复
热议问题