2021-09-14 08:48:15 +02:00
|
|
|
{
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Debug (Postgres)",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"protocol": "inspector",
|
|
|
|
"restart": true,
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/@posthog/piscina/**"],
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ts-node-dev",
|
|
|
|
"runtimeArgs": ["--inspect", "--exit-child"],
|
|
|
|
"args": ["src/index.ts"],
|
2021-11-09 13:34:04 +01:00
|
|
|
"env": {
|
|
|
|
"NODE_ENV": "dev",
|
|
|
|
"BASE_DIR": "${workspaceFolder}/../posthog"
|
|
|
|
}
|
2021-09-14 08:48:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug (ClickHouse)",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"protocol": "inspector",
|
|
|
|
"restart": true,
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/@posthog/piscina/**"],
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ts-node-dev",
|
|
|
|
"runtimeArgs": ["--inspect", "--exit-child"],
|
|
|
|
"args": ["src/index.ts"],
|
|
|
|
"env": {
|
|
|
|
"NODE_ENV": "dev",
|
|
|
|
"BASE_DIR": "${workspaceFolder}/../posthog",
|
|
|
|
"KAFKA_ENABLED": "1",
|
|
|
|
"KAFKA_HOSTS": "kafka:9092"
|
|
|
|
}
|
2021-11-09 13:34:04 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"name": "vscode-jest-tests",
|
|
|
|
"request": "launch",
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
|
|
|
"disableOptimisticBPs": true,
|
|
|
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"args": ["--runInBand", "--forceExit", "--watchAll=false"]
|
2021-09-14 08:48:15 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|