如何在Chrome开发者工具中“添加手表”? [英] How to 'add watch' in Chrome developer tools?
问题描述
我似乎找不到在Chrome开发者工具中为所选JavaScript文本添加监视表达式的方法,就像我在Firebug中使用Ctrl + W一样。在Chrome中真的没办法做到这一点吗?我甚至无法右键单击选择,因为它一旦取消就会取消选择,并且没有添加监视上下文菜单项。我是否真的必须在调试JS时输入我要添加的每个手表?
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?
推荐答案
你可以点击'添加到观看'后右键单击
You can do it by clicking 'add to watch' after right clicking
您还可以选择表达式/变量并点击 Ctrl + Shift + A
You can also select the expression/variable and hit Ctrl + Shift + A
这篇关于如何在Chrome开发者工具中“添加手表”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!