Stop at the line where a variable gets changed

前端 未结 2 722
不知归路
不知归路 2020-12-10 11:16

I am trying to track down when a variable gets updated. I have a watcher, but is there any way to set it up so that the execution can be paused when the value is getting upd

2条回答
  •  抹茶落季
    2020-12-10 11:36

    You can add a breakpoint in the line you need to watch and right-click it. Then in the dialog box you have "condition" as last input: add a condition that uses the variable you need and it should stop when you set it to.

提交回复
热议问题