| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- {
- "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": ["<node_internals>/**"],
- "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": ["<node_internals>/**"],
- "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": ["<node_internals>/**"],
- "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": ["<node_internals>/**"],
- "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"
- }
- ]
- }
|