NPM install -g node-inspector // -g import the installation path to the environment variable Node-inspector is used to switch to debug input and output via websocket. Therefore, we need to start node-inspector to listen on the Nodejs debug port before debugging:

2:

Then debugging works ?



For more of Jerry’s original articles, please follow the public account “Wang Zixi “: