Files
NebulaShell/.vscode/launch.json
2026-05-02 08:30:31 +08:00

241 lines
6.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"version": "0.2.0",
"configurations": [
{
"name": "NebulaShell: 启动服务",
"type": "python",
"request": "launch",
"module": "oss.cli",
"args": ["serve"],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试模式启动",
"type": "python",
"request": "launch",
"module": "oss.cli",
"args": ["serve", "--debug"],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1",
"LOG_LEVEL": "DEBUG"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 运行测试",
"type": "python",
"request": "launch",
"module": "pytest",
"args": [
"-v",
"--tb=short",
"--cov=oss",
"--cov-report=html",
"--cov-report=term"
],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试插件加载器",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/oss/plugin/loader.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试日志终端插件",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/@{NebulaShell}/log-terminal/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试WebUI",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/@{NebulaShell}/webui/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试HTTP API",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/@{NebulaShell}/http-api/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试WS API",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/@{NebulaShell}/ws-api/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试特定文件",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 附加到进程",
"type": "python",
"request": "attach",
"processId": "${command:pickProcess}",
"host": "localhost",
"port": 5678,
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
],
"justMyCode": false
},
{
"name": "NebulaShell: 运行CLI命令",
"type": "python",
"request": "launch",
"module": "oss.cli",
"args": ["${input:cliCommand}"],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell 网站: 启动Node.js服务器",
"type": "node",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/website/src/server.js",
"outFiles": [
"${workspaceFolder}/website/**/*.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"NODE_ENV": "development"
},
"autoAttachChildProcesses": true,
"sourceMaps": true,
"showAsyncStacks": true,
"smartStep": true,
"pauseForSourceMap": true,
"cwd": "${workspaceFolder}/website"
},
{
"name": "NebulaShell 网站: 开发模式启动",
"type": "node",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"NODE_ENV": "development"
},
"autoAttachChildProcesses": true,
"sourceMaps": true,
"cwd": "${workspaceFolder}/website"
},
{
"name": "NebulaShell 网站: 附加到Node.js进程",
"type": "node",
"request": "attach",
"port": 9229,
"skipFiles": [
"<node_internals>/**"
],
"restart": true,
"localRoot": "${workspaceFolder}/website",
"remoteRoot": "${workspaceFolder}/website"
}
],
"inputs": [
{
"id": "cliCommand",
"type": "promptString",
"description": "输入要执行的CLI命令install, uninstall, list等",
"default": "help"
}
],
"compounds": [
{
"name": "NebulaShell: 完整调试环境",
"configurations": [
"NebulaShell: 启动服务",
"NebulaShell: 调试日志终端插件"
],
"stopAll": true
}
]
}