From 8d741968c7f382b5c504b93ebf44b2b575deeb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=98=9F=E6=98=9F?= <752758299@qq.com> Date: Tue, 28 Dec 2021 10:51:26 +0800 Subject: [PATCH] Update debugging-in-vscode.md Debug in JS files and Vue files --- src/v2/cookbook/debugging-in-vscode.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/v2/cookbook/debugging-in-vscode.md b/src/v2/cookbook/debugging-in-vscode.md index 5c79d7b6dd..b722e8530f 100644 --- a/src/v2/cookbook/debugging-in-vscode.md +++ b/src/v2/cookbook/debugging-in-vscode.md @@ -59,7 +59,10 @@ Click on the Debugging icon in the Activity Bar to bring up the Debug view, then "webRoot": "${workspaceFolder}/src", "breakOnLoad": true, "sourceMapPathOverrides": { - "webpack:///src/*": "${webRoot}/*" + "webpack:///src/*": "${webRoot}/*", + // If the breakpoint of JS file or Vue file cannot be set, the corresponding wildcard can be configured according to the file in 'webpack://' in the sources column under devtools of chrome. Examples are as follows + // "webpack:///./src/*.js": "${webRoot}/*.js", + // "webpack:///src/*.vue": "${webRoot}/*.vue" } }, {