Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Extension : Capture network log without opening developer tools

For Chrome to capture network log, it is compulsary to open developer tools. I am making a chrome extension in which I will need network log information. Also, how can I access captured network log through my chrome extension.


1 Answers

You can use chrome.debugger API. You can attach to an app without the Dev Tools opened.

Debugger protocol docs, in particular Network-related, can be found here.

For an example, see Live HTTP Headers sample extension.

like image 111
Xan Avatar answered Aug 11 '26 08:08

Xan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!