how to monitor the network on node.js similar to chrome/firefox developer tools?

后端 未结 5 1840
猫巷女王i
猫巷女王i 2021-01-31 02:05

When developing client side javascript applications, the developer network panel is invaluable for debugging network issues:

5条回答
  •  悲&欢浪女
    2021-01-31 03:05

    I came to this question looking for something similar but I'm using the request package. In this case all you need to do is include this line in your code:

    require('request-debug')(request);

    (make sure request-debug package is installed)

    This will print all the request data to the console.

提交回复
热议问题