在打开页面之前打开Firefox网络 [英] Open Firefox network before page is opened

查看:86
本文介绍了在打开页面之前打开Firefox网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Firefox,并希望分析页面的请求/响应.

I'm using Firefox and want to analyses the request/response of a page.

是否可以打开开发者工具()(即网络"),然后进入/打开页面(自动打开第二个标签).

Is there a way to open the Developer tools (firefox-developer-tools) - namely "Network" - before entering/opening the page (Automatic opening second tab).

否则,将无法正确跟踪流量.

Otherwise it would not be possible to track the traffic correct.

推荐答案

据我所知(v65版本起)没有用于此操作的选项/配置,但是您可以使用--devtools标志( https://bugzilla.mozilla.org/show_bug.cgi?id=1226744 ) ,可悲的是有一些限制:

As far as I know there is no option/config for doing that (as of v65), but you can do that with --devtools flag (https://bugzilla.mozilla.org/show_bug.cgi?id=1226744), sadly there is some limitations:

  1. 如果您正在运行Firefox,则应将其关闭或使用其他配置文件( --no-remote -p profilename )
  2. Firefox将在启动时仅针对第一个选项卡而不是所有其他新选项卡打开开发工具.

因此,假设您有另一个配置文件(我们将其称为dev),请按照以下步骤操作:

So, assume you have another profile (let's call it dev), follow this steps:

  1. 前往Firefox安装位置
  2. 打开您喜欢的命令行
  3. 使用此命令:firefox.exe --devtools --no-remote -p dev --url YOUR_SITE_URL

如果您没有/喜欢其他个人资料,则必须先关闭Firefox

P.S:重新排序devtools选项卡非常简单,您可以使用拖放操作来实现.

P.S: Reorder devtools tabs is dead easy, you can do that using drag/drop.

更新

根据您的评论,我认为您只需要Persist Logs选项

Based on your comment, I think all you need is Persist Logs option,

  • F12
  • 选择Network标签
  • 在第一行上( 工具栏 ),您应该会看到Persist Logs选项,只需选择该选项即可.
  • Hit F12
  • Select Network tab
  • On first row (toolbar) you should see Persist Logs option, just select that

现在刷新页面,您将不再删除日志.

Now refresh the page, you will logs doesn't deleted anymore.

PS:Persist Logs也可用于Console标签.

P.S: Persist Logs is available for Console tab too.

这篇关于在打开页面之前打开Firefox网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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