vscode nodemon打断点

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
1,修改package.json

"scripts": {<!-- -->  
 "debug": "nodemon server.js"  
},  
2,修改.vscode/launch.json
{<!-- -->  
 "version": "0.2.0",  
 "configurations": [  
        {<!-- -->  
            "name": "随意",  
            "type": "node",  
            "request": "launch",  
            "cwd": "${workspaceFolder}",  
            "runtimeExecutable": "npm",  
            "runtimeArgs": [  
                "run-script", "debug"  
            ],  

       }  
    ]  
}