Jez Jez - 1 month ago 20
Javascript Question

How to 'add watch' in Chrome developer tools?

I can't seem to find a way to add a watch expression for the selected JavaScript text in Chrome developer tools, the same way I would in Firebug with Ctrl+W. Is there really no way to do this in Chrome? I can't even right-click the selection as it unselects as soon as I do it, and there is no "Add watch" context menu item. Do I really have to type in every watch I want to add while debugging JS?

Answer

You can do it by clicking 'add to watch' after right clicking

You can also select the expression/variable and hit Ctrl + Shift + A