Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log XHR request in Network Tab in Chrome even when dev tools is not opened?

Chrome Console always keeps logs, no matter if the dev tools are opened or not. I want same for network tab.

Is it possible to log XHR requests in Chrome even when developer tools are not opened? If not, is it possible in other browsers?

like image 689
dasfdsa Avatar asked Sep 07 '18 13:09

dasfdsa


People also ask

What is XHR in Chrome Network tab?

XMLHttpRequest (XHR) is a JavaScript API to create AJAX requests. Its methods provide the ability to send network requests between the browser and a server.

How do I enable Network tabs in Chrome?

You can see the network tab by hitting cmd + opt + j on your Mac or ctrl + shift + j in Windows. It will open up the console tab in DevTools by default. Once the console tab is open, simply click on the network tab to make it visible.


1 Answers

You could use a proxy outside of the browser such as Fiddler for this. It's great, and the author of the tool even responds to questions about it on Stack Overflow!

https://www.telerik.com/fiddler

(I don't work for Fiddler, but it was there for us in the days before browsers had dev tools)

like image 69
nothingisnecessary Avatar answered Oct 05 '22 23:10

nothingisnecessary