{ "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "omsapp", "url": "http://localhost:4200/app", "webRoot": "${workspaceFolder}/omsapp", "sourceMapPathOverrides": { // 匹配Angular编译输出路径与实际源码路径 "/app/src/*": "${workspaceFolder}/omsapp/src/*", "webpack:///./src/*": "${workspaceFolder}/omsapp/src/*", "webpack:///src/*": "${workspaceFolder}/omsapp/src/*", // 处理可能的相对路径映射 "../public/app/src/*": "${workspaceFolder}/omsapp/src/*", "*/src/*": "${workspaceFolder}/omsapp/src/*" } }, { "type": "node", "request": "launch", "name": "oms-background", "skipFiles": ["/**"], "program": "${workspaceFolder}/oms/src/app.ts", "runtimeArgs": [ "--require", "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler ], "args": [], // Optional arguments for your script "env": { // You can add environment variables needed by your script here, "MONGO_URI": "mongodb://oms:oms123.@localhost:27717/omsdb?authSource=admin", "CLICKHOUSE_HOST": "http://localhost:8123", "CLICKHOUSE_DATABASE": "omsdb", "CLICKHOUSE_USER": "ckuser", "CLICKHOUSE_PASSWORD": "ckpassword" }, "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder "console": "integratedTerminal", // Or "internalConsole" "internalConsoleOptions": "openOnSessionStart" }, { "type": "node", "request": "launch", "name": "ingestHistoricalData (TS-Node)", "skipFiles": ["/**"], "program": "${workspaceFolder}/oms/src/scripts/ingestHistoricalData.ts", "runtimeArgs": [ "--require", "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler ], "args": [], // Optional arguments for your script "env": { // You can add environment variables needed by your script here, "MONGO_URI": "mongodb://oms:oms123.@localhost:27717/omsdb", "CLICKHOUSE_HOST": "http://localhost:8123", "CLICKHOUSE_DATABASE": "omsdb", "CLICKHOUSE_USER": "ckuser", "CLICKHOUSE_PASSWORD": "ckpassword", "START_DATE": "20250818", // Example date range "END_DATE": "20250820" }, "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder "console": "integratedTerminal", // Or "internalConsole" "internalConsoleOptions": "openOnSessionStart" }, { "type": "node", "request": "launch", "name": "test (TS-Node)", "skipFiles": ["/**"], "program": "${workspaceFolder}/oms/src/test/test-remote-art.ts", "runtimeArgs": [ "--require", "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler ], "args": [], // Optional arguments for your script "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder "console": "integratedTerminal", // Or "internalConsole" "internalConsoleOptions": "openOnSessionStart" }, { "type": "node", "request": "launch", "name": "active-user-daily-notify (TS-Node)", "skipFiles": ["/**"], "program": "${workspaceFolder}/oms/src/scripts/active-user-daily-notify.ts", "runtimeArgs": [ "--require", "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler ], "args": [], // Optional arguments for your script "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder "console": "integratedTerminal", // Or "internalConsole" "internalConsoleOptions": "openOnSessionStart" } ] }