2022-02-13 15:52:05 +08:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2022-02-14 17:48:27 +08:00
|
|
|
"name": "Main(inspector)",
|
2022-02-13 15:52:05 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
|
|
"runtimeArgs": [
|
2022-02-14 17:48:27 +08:00
|
|
|
"--remote-debugging-port=9222",
|
|
|
|
"${workspaceFolder}/dist/main/index.cjs",
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"DEBUG": "true",
|
|
|
|
},
|
|
|
|
"windows": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
|
|
|
|
},
|
|
|
|
"sourceMaps": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "chrome",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Renderer(inspector)",
|
|
|
|
"url": "http://localhost:9222",
|
|
|
|
"webRoot": "${workspaceFolder}/dist/packages/renderer",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Main(vite)",
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
|
|
"runtimeArgs": [
|
|
|
|
"${workspaceFolder}/dist/main/index.cjs",
|
2022-02-13 15:52:05 +08:00
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"VITE_DEV_SERVER_HOST": "127.0.0.1",
|
2022-02-14 17:48:27 +08:00
|
|
|
"VITE_DEV_SERVER_PORT": "3344",
|
2022-02-13 15:52:05 +08:00
|
|
|
},
|
|
|
|
"windows": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
|
|
|
|
},
|
|
|
|
"sourceMaps": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "chrome",
|
|
|
|
"request": "launch",
|
2022-02-14 17:48:27 +08:00
|
|
|
"name": "Renderer(vite)",
|
2022-02-13 15:52:05 +08:00
|
|
|
"url": "http://localhost:3344",
|
|
|
|
"webRoot": "${workspaceFolder}/packages/renderer",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"compounds": [
|
|
|
|
{
|
2022-02-14 17:48:27 +08:00
|
|
|
"name": "All(inspector)",
|
2022-02-13 15:52:05 +08:00
|
|
|
"configurations": [
|
2022-02-14 17:48:27 +08:00
|
|
|
"Renderer(inspector)",
|
|
|
|
"Main(inspector)",
|
|
|
|
],
|
|
|
|
"preLaunchTask": "npm: prebuild"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "All(vite serve)",
|
|
|
|
"configurations": [
|
|
|
|
"Renderer(vite)",
|
|
|
|
"Main(vite)",
|
|
|
|
],
|
|
|
|
"preLaunchTask": "npm: debug"
|
2022-02-13 15:52:05 +08:00
|
|
|
}
|
|
|
|
]
|
2022-02-14 17:48:27 +08:00
|
|
|
}
|