Click Add Configuration to Add nodeJslaunch.json The editorlaunch.jsonSet launch.json as follows:

Configurations "{"version": "0.2.0", "configurations": [{"type": "node", "request": "launch", "name": "launch Program"," Program" : "${workspaceFolder}/bin/www", "skipFiles": [ "<node_internals>/**" ] }, { "type": "node", "request": "attach", "name": "Attach", "port": 5858 } ] }Copy the code

Run:

The author is simple

Author: Xiaowantang, a passionate and serious writer, currently maintains the original public account “My Xiaowantang”, focusing on writing the go language, Docker, Kubernetes, Java and other development, operation and maintenance knowledge to enhance the hard power of the article, looking forward to your attention. Note: Be sure to specify the source (note: from the official account: My Small bowl of soup, author: Small bowl of soup)