Frage

I would like to observe the contents of a POST request whose successful completion results in a location.reload() - when I try to capture this request in the Network Panel of the Firefox developer tools, I find that the page reload clears the list of captured events. Can I prevent this clearing?

War es hilfreich?

Lösung

From Firefox 31 onwards you can use the "Enable persistent logs" setting to prevent the Network Monitor from clearing the list on reload.

Andere Tipps

Despite knowing the name for the setting is "Enable persistent logs", it took me a while to find it on the settings page. I hope this helps:

Location of "Enable persistent logs" setting in Firefox

I couldn't find this setting in Firefox 57. The setting has been moved to the network tab itself, above the log table

enter image description here

Roughly three years after BeetleJuice's update, it seems to have moved again - now, you need to click the gear icon on the far right side for the option to appear. Hooray for our ever-changing user interface soup.

enter image description here

If "Enable persistent Log" settings is not available in the devtool settings, you can go to about:config(type this in the URL box and enter) page and search for persistlog and change it from there(toggle button on the right).

I can see two options and enabled both. :)

devtools.netmonitor.persistlog, devtools.webconsole.persistlog

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top