打开新标签页/新窗口时自动打开 Chrome 开发者工具 [英] Automatically open Chrome developer tools when new tab/new window is opened

查看:354
本文介绍了打开新标签页/新窗口时自动打开 Chrome 开发者工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 HTML5 应用程序,它可以通过单击链接在新窗口中打开.每次我想记录网络通信以启动 开发者工具 时,我都对按 Shift + I 有点厌倦,因为我总是需要它.我找不到在启动时始终启用开发者工具的选项.

I have HTML5 application which opens in a new window by clicking a link. I'm a bit tired of pressing Shift + I each time I want to logging network communication to launch Developer tools because I need it always. I was not able to find an option to keep Developer Tools always enabled on startup.

有什么办法可以在 Chrome 中打开新窗口时自动打开开发者工具?

Is there any way to open Developer tools automatically when new window is opened in Chrome?

推荐答案

更新 2:

请参阅此答案.- 2019-11-05

See this answer . - 2019-11-05

您现在还可以让它在弹出窗口中自动打开开发人员工具,前提是它们在您打开它们的地方打开.例如,如果您没有打开 Dev Tools 并且出现一个弹出窗口,则它不会通过 Dev Tools 打开.但是,如果您打开开发工具,然后单击某些内容,弹出窗口将自动打开开发工具.

You can also now have it auto-open Developer Tools in Pop-ups if they were open where you opened them from. For example, if you do not have Dev Tools open and you get a popup, it won't open with Dev Tools. But if you Have Dev Tools Open and then you click something, the popup will have Dev-Tools Automatically opened.

更新:

时间变了,您现在可以像 这个答案 – Wouter Huysentruit 5 月 18 日 11:08

Time has changed, you can now use --auto-open-devtools-for-tabs as in this answer – Wouter Huysentruit May 18 at 11:08

操作:

我在执行时使用了 Chrome 的启动字符串,但无法让它持续到新标签页.
我还考虑了可以从提示中调用的已定义 PATH 方法.这可以通过 SendKeys 命令实现,但同样仅限于新实例.并且 DevTools 不会保留到新标签页.

I played around with the startup string for Chrome on execute, but couldn't get it to persist to new tabs.
I also thought about a defined PATH method that you could invoke from prompt. This is possible with the SendKeys command, but again, only on a new instance. And DevTools doesn't persist to new tabs.

在浏览 Google 产品论坛时,Chrome 似乎没有内置的方法来执行此操作.如上所述,您必须使用击键解决方案或 F12.

Browsing the Google Product Forums, there doesn't seem to be a built-in way to do this in Chrome. You'll have to use a keystroke solution or F12 as mentioned above.

我推荐它作为一项功能.我知道我也不是第一个.

I recommended it as a feature. I know I'm not the first either.

这篇关于打开新标签页/新窗口时自动打开 Chrome 开发者工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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