开发人员工具“网络"选项卡,在“源"选项卡中打开脚本? [英] Dev tools Network Tab, open script in Sources tab?

查看:68
本文介绍了开发人员工具“网络"选项卡,在“源"选项卡中打开脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome开发者工具中,查看网络"标签时,是否可以选择一个脚本并在源"标签中将其打开?双击该脚本可在新的浏览器选项卡中将其原始打开.

In Chrome Dev Tools, when viewing the Network tab, is it possible to select a script and open it in the Sources tab? Double-clicking the script opens it raw in a new browser tab.

由于源"选项卡按其资源域(以及文件夹路径)组织所有资产,因此,如果您不立即知道特定脚本的来源,则查找特定脚本可能会很耗时.您必须在网络"和源"之间来回切换,注意脚本标题中的域和文件夹路径,然后尝试在所有源域和子文件夹中进行挖掘,直到找到脚本为止.

Because the Sources tab organizes all assets by their source domains (along with folder paths), it can be time consuming to locate a particular script, if you don't know immediately where it came from. You have to switch back and forth between Network and Sources, taking note of the domain and folder path in the script's header and then trying to dig through all the source domain's and subfolders until you locate the script.

似乎应该有一些明显的方法可以从网络"选项卡的源"选项卡中打开脚本,但是我不知道如何.您似乎必须手动挖掘才能找到它.

It seems like there should be some obvious way of opening a script in the Sources tab from the Network tab, but I don't see how. You appear to have to manually dig to find it.

推荐答案

编辑

此功能现已在Chrome Canary中可用,并且应该会在几周内在稳定的Chrome中可用.

This feature is now available in Chrome Canary, and should be available in stable Chrome in a few weeks.

据我所知,这不可能.我认为这是个好主意,因此我为进行了报道.

As far as I know this is not possible right now. I think it's a good idea though, so I reported it for you.

我可以想到,从源"标签中的网络"标签打开脚本的最快方法是:

The quickest way, I can think of, to open a script from the network tab in the sources tab is to:

  • 从网络"标签复制/存储脚本名称,
  • 转到源"标签,
  • 打开文件搜索( cmd + p / ctrl + p ),
  • 输入要查找的文件的名称.
  • copy/memorize name of the script from network tab,
  • go to the sources tab,
  • open file search (cmd+p / ctrl+p),
  • enter name of the file you are looking for.

这篇关于开发人员工具“网络"选项卡,在“源"选项卡中打开脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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