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:
L-Sun
2025-01-16 06:17:40 +00:00
parent 32f09b5ac0
commit f7cbd21dd9
2 changed files with 21 additions and 6 deletions
+20 -3
View File
@@ -7,7 +7,11 @@
"request": "launch",
"runtimeExecutable": "yarn",
"cwd": "${workspaceFolder}",
"runtimeArgs": ["affine", "@affine/server", "dev"]
"runtimeArgs": [
"affine",
"@affine/server",
"dev"
]
},
{
"name": "Lanuch AFFiNE Web",
@@ -15,7 +19,20 @@
"request": "launch",
"runtimeExecutable": "yarn",
"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/*"
}
}
]
}
}
+1 -3
View File
@@ -113,9 +113,7 @@ export function createWebpackConfig(
mode: flags.mode,
devtool:
flags.mode === 'production'
? 'source-map'
: 'eval-cheap-module-source-map',
flags.mode === 'production' ? 'source-map' : 'cheap-module-source-map',
resolve: {
symlinks: true,