1 The use of debbugeer for chrome
Download and install, then configure launch.json
{ "name": "Chrome",//名称 "type": "chrome", "request": "launch", "sourceMaps": false,//Do not configure the server, use the file protocol "file": "${file}" //Environment variables to start this page }
Then you can set breakpoints (ps: it seems that it can only be set in the external js)
2 Configure the node service
{ "type": "node", "request": "launch", "name": "node Program", "program": "${file}" }
There are other useful plugins welcome to recommend~