PaulEdison
PaulEdison

Reputation: 947

Open Firefox network before page is opened

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

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

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

Upvotes: 9

Views: 4071

Answers (2)

D.Bugger
D.Bugger

Reputation: 2359

I had the same problem so I asked in the Mozilla forum. Very simple solution: use the Browser Console, deselect all options at the top and select only XHR and Requests. Credits to cor-el!

See https://support.mozilla.org/en-US/questions/1325539

Upvotes: 1

Mehdi Dehghani
Mehdi Dehghani

Reputation: 11601

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. If you have running Firefox, you should close it or use another profile (--no-remote -p profilename)
  2. Firefox will open dev tools on startup only for first tab and not for all other new tabs.

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

  1. Head to Firefox install location
  2. Open up your favorite command-line
  3. Use this command: firefox.exe --devtools --no-remote -p dev --url YOUR_SITE_URL

If you don't have/like another profile, you have to close Firefox first

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

Update

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

  • 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.

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

Upvotes: 1

Related Questions