11

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.

lcharbon
  • 3,030
  • 2
  • 16
  • 18
  • 1
    please have a look at this answer: https://stackoverflow.com/questions/28873332/how-to-monitor-the-network-on-node-js-similar-to-chrome-firefox-developer-tools – Guy Hagemans Oct 16 '22 at 09:40

1 Answers1

0

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.

Ludolfyn
  • 1,806
  • 14
  • 20