chore(debug): add vscode debug launch setting (#9725)
This PR allows vscode to add breakpoints to the editor's code.
This commit is contained in:
23
.vscode/launch.template.json
vendored
23
.vscode/launch.template.json
vendored
@@ -7,7 +7,11 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "yarn",
|
"runtimeExecutable": "yarn",
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"runtimeArgs": ["affine", "@affine/server", "dev"]
|
"runtimeArgs": [
|
||||||
|
"affine",
|
||||||
|
"@affine/server",
|
||||||
|
"dev"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Lanuch AFFiNE Web",
|
"name": "Lanuch AFFiNE Web",
|
||||||
@@ -15,7 +19,20 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "yarn",
|
"runtimeExecutable": "yarn",
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"runtimeArgs": ["affine", "@affine/web", "dev"]
|
"runtimeArgs": [
|
||||||
|
"affine",
|
||||||
|
"@affine/web",
|
||||||
|
"dev"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Debug AFFiNE Web",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"sourceMapPathOverrides": {
|
||||||
|
"webpack://affine/blocksuite/*": "${workspaceFolder}/blocksuite/*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -113,9 +113,7 @@ export function createWebpackConfig(
|
|||||||
mode: flags.mode,
|
mode: flags.mode,
|
||||||
|
|
||||||
devtool:
|
devtool:
|
||||||
flags.mode === 'production'
|
flags.mode === 'production' ? 'source-map' : 'cheap-module-source-map',
|
||||||
? 'source-map'
|
|
||||||
: 'eval-cheap-module-source-map',
|
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
symlinks: true,
|
symlinks: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user