Is there a version of NodeJS that supports viewing network activity in the network tab of Chrome DevTools? There is no network tab when I open DevTools using node --inspect
or, node --inspect-brk
in NodeJS v12.13.0.
Network Tab Node Inspect Chrome DevTools
Asked Answered
please have a look at this answer: #28873832 –
Larainelarboard
Does this answer your question? how to monitor the network on node.js similar to chrome/firefox developer tools? –
Genitor
If it's the network activity that you are after, then you could also potentially use the Puppeteer library. It's good for doing any browser related things on the server. It opens up a headless (or non-headless) chromium instance and allows you to do a bunch of things. One of those things is to capture the network requests. These posts seem to talk a bit about that.
Please try: https://github.com/GrinZero/node-network-devtools
.
It proxy the node progame and use CDP to log network info to devtools.
© 2022 - 2024 — McMap. All rights reserved.