Update debugging-in-vscode.md (#808)

Add vscode debug config for Windows
This commit is contained in:
zhb124404 2021-02-22 02:44:00 +08:00 committed by GitHub
parent 371b95608d
commit 8cad4a51e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,12 +27,26 @@ title: Debugging in VSCode
},
"args": ["./dist/index.js"],
"outputCapture": "std"
}
},
{
"command": "npx webpack --devtool source-map && npx qode --inspect ./dist/index.js",
"name": "Debug for Cmd",
"request": "launch",
"type": "node-terminal"
},
{
"command": "npx webpack --devtool source-map; npx qode --inspect ./dist/index.js",
"name": "Debug for PowerShell",
"request": "launch",
"type": "node-terminal"
},
]
}
```
**Tip**: You could also configure a preLaunchTask for building typescript before launching the debugger everytime.
**Tip**:
1. You could also configure a preLaunchTask for building typescript before launching the debugger everytime.
2. enable source-map feature for debugging.
- **Debugging**