scriptr-cli
v1.0.0
Published
vscode debug -> create a launch.json file -> node -> launch via npm
Downloads
4
Readme
如何 debug 源码
vscode debug -> create a launch.json file -> node -> launch via npm
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch via NPM",
"request": "launch",
"runtimeArgs": ["run-script", "build"],
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"type": "node"
}
]
}再去bin目录下的 react-scripts 去加debugger
