From dac88d6aa2036ed935c935a50f38fb13f4a83ada Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Fri, 1 Jun 2018 16:21:53 +0300 Subject: [PATCH] Update debugging-in-vscode.md --- src/v2/cookbook/debugging-in-vscode.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/v2/cookbook/debugging-in-vscode.md b/src/v2/cookbook/debugging-in-vscode.md index fd2f0eb5af..bda38542d1 100644 --- a/src/v2/cookbook/debugging-in-vscode.md +++ b/src/v2/cookbook/debugging-in-vscode.md @@ -24,6 +24,16 @@ Go to `config/index.js` and find the `devtool` property. Update it to: devtool: 'source-map', ``` +With Vue CLI 3 you need set `devtool` property inside `vue.config.js`: + +```js +module.exports = { + configureWebpack: { + devtool: 'source-map' + } +} +``` + ### Launching the Application from VS Code Click on the Debugging icon in the Activity Bar to bring up the Debug view, then click on the gear icon to configure a launch.json file, selecting **Chrome** for the environment. Replace content of the generated launch.json with the following two configurations: