Similar to this question, I would like to break on a variable change in Chrome. However, I'm using Angular, so the variable I would like to break on is only defined in the HTML. Its essentially something like this -
<div ng-click="show = !show">...<div>
<div ng-class="{expanded : show}">...
With no code in the controller. So how can I get Chrome to pause when show
is changed? I know that I can change the code to a function call that wraps show
and then put a breakpoint there, but its an inefficient use of time and I would like to know if there is a way to directly break on variable change.