如何在Chrome开发者工具中“添加手表”? [英] How to 'add watch' in Chrome developer tools?

查看:418
本文介绍了如何在Chrome开发者工具中“添加手表”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎找不到在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆