2022-05-29 14:52:34 +00:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2022-09-16 13:49:20 +00:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Launch via Vite Node",
|
|
|
|
"runtimeExecutable": "node",
|
|
|
|
"skipFiles": ["<node_internals>/**"],
|
|
|
|
// todo?: make relative to ${file}
|
|
|
|
"cwd": "${workspaceFolder}/packages/status-js",
|
|
|
|
"program": "${workspaceRoot}/node_modules/vite-node/dist/cli.mjs",
|
2022-11-18 19:46:31 +00:00
|
|
|
"args": ["--options.sourcemap=inline", "${file}"],
|
2022-09-16 13:49:20 +00:00
|
|
|
"smartStep": true,
|
|
|
|
"sourceMaps": true,
|
|
|
|
"env": {
|
|
|
|
"DEBUG": "*",
|
2022-11-18 19:46:31 +00:00
|
|
|
"DEBUG_HIDE_DATE": "0",
|
|
|
|
"DEBUG_COLORS": "1",
|
2022-09-19 08:47:33 +00:00
|
|
|
"VITE_NODE": "true"
|
2022-11-18 19:46:31 +00:00
|
|
|
},
|
|
|
|
"runtimeArgs": ["--preserve-symlinks"],
|
|
|
|
"outFiles": ["${workspaceFolder}/**/*.js"],
|
|
|
|
"resolveSourceMapLocations": ["**/*"]
|
2022-09-16 13:49:20 +00:00
|
|
|
},
|
2022-05-29 14:52:34 +00:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2022-06-28 14:40:39 +00:00
|
|
|
"name": "Debug Client",
|
|
|
|
"autoAttachChildProcesses": true,
|
|
|
|
"skipFiles": ["<node_internals>/**"],
|
|
|
|
"cwd": "${workspaceFolder}/packages/status-js",
|
|
|
|
"program": "${workspaceRoot}/node_modules/vite-node/dist/cli.mjs",
|
|
|
|
"args": ["src/index.ts"],
|
2022-05-29 14:52:34 +00:00
|
|
|
"smartStep": true,
|
2022-06-28 14:40:39 +00:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"sourceMaps": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug Test File",
|
|
|
|
"autoAttachChildProcesses": true,
|
|
|
|
"skipFiles": ["<node_internals>/**"],
|
|
|
|
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
|
|
|
|
"args": ["run", "${relativeFile}"],
|
|
|
|
"smartStep": true,
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"sourceMaps": true
|
2022-05-29 14:52:34 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|