53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"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",
|
|
"args": ["--options.sourcemap=inline", "${file}"],
|
|
"smartStep": true,
|
|
"sourceMaps": true,
|
|
"env": {
|
|
"DEBUG": "*",
|
|
"DEBUG_HIDE_DATE": "0",
|
|
"DEBUG_COLORS": "1",
|
|
"VITE_NODE": "true"
|
|
},
|
|
"runtimeArgs": ["--preserve-symlinks"],
|
|
"outFiles": ["${workspaceFolder}/**/*.js"],
|
|
"resolveSourceMapLocations": ["**/*"]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"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"],
|
|
"smartStep": true,
|
|
"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
|
|
}
|
|
]
|
|
}
|