Skip to content

Commit e93b837

Browse files
Alex-Sokolovsdras
authored andcommitted
Update debugging-in-vscode.md (vuejs#1663)
1 parent edbbf1a commit e93b837

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/v2/cookbook/debugging-in-vscode.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ Go to `config/index.js` and find the `devtool` property. Update it to:
2424
devtool: 'source-map',
2525
```
2626

27+
With Vue CLI 3 you need set `devtool` property inside `vue.config.js`:
28+
29+
```js
30+
module.exports = {
31+
configureWebpack: {
32+
devtool: 'source-map'
33+
}
34+
}
35+
```
36+
2737
### Launching the Application from VS Code
2838

2939
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:

0 commit comments

Comments
 (0)