From 8cad4a51e4557ce18f6588b4346feea5da2b6640 Mon Sep 17 00:00:00 2001 From: zhb124404 <1945698666@qq.com> Date: Mon, 22 Feb 2021 02:44:00 +0800 Subject: [PATCH] Update debugging-in-vscode.md (#808) Add vscode debug config for Windows --- website/docs/guides/debugging-in-vscode.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/website/docs/guides/debugging-in-vscode.md b/website/docs/guides/debugging-in-vscode.md index 2566cedd8..52f87bff8 100644 --- a/website/docs/guides/debugging-in-vscode.md +++ b/website/docs/guides/debugging-in-vscode.md @@ -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**