agmission/Development/server/.vscode/launch.json

352 lines
9.1 KiB
JSON

{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
// "env": {
// "DEBUG": "email-templates node server.js"
// },
"version": "1.0.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Import CustStripe Subs",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*",
"PRODUCTION": "false"
},
"program": "${workspaceFolder}/scripts/importCustStripeSubs.js",
"args": [
"cus_SIX3z3yexFrh6q", //"cus_RyON6s93uk5Wxh", // Replace with your Stripe customer ID
//"--dry-run"
],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment_prod.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "AGM DEBUG PRODUCTION",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v16.20.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*",
"PRODUCTION": "true"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment_prod.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Node 16- AGM DEBUG ScaleGrid",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v16.20.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment_test_ScaleGrid.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Node 16- AGM DEBUG",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v16.20.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "AGM DEBUG",
// "runtimeVersion": "14.17.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v14.17.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Copy Jobs PROD",
"program": "${workspaceFolder}/scripts/migrateJobIds.js",
"args": [
"copy"
],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:reconcile-jobs",
"PRODUCTION": "true",
"NODE_ENV": "production",
"SOURCE_DB_URI": "mongodb://agm:Agm2017@agndb0.agnav.com:27017/agmission?authSource=agmission&readPreference=primary&appname=Copy-Jobs&ssl=false",
"KEEP_RELATED_IDS": "true"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Copy App Details PROD",
"program": "${workspaceFolder}/scripts/copyApplicationDetails.js",
"args": [
"--dry-run"
],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:copy-app-details",
"PRODUCTION": "true",
"NODE_ENV": "production",
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Program PROD",
"program": "${file}",
"args": [],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:*",
"PRODUCTION": "true",
"NODE_ENV": "production",
"END_YEAR": "2021"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Program",
"program": "${file}",
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment.env",
"env": {
"DEBUG": "agm:*",
"LOG_LEVEL": "info",
"NODE_ENV": "development",
"PRODUCTION": "0"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v16.20.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"name": "Launch Program ScaleGrid",
"program": "${file}",
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_test_ScaleGrid.env",
"env": {
"DEBUG": "agm:*"
},
"console": "integratedTerminal"
},
{
"name": "Debug Clean Orphaned AppDetails - Safe Test",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"envFile": "${workspaceFolder}/environment.env",
"args": [
"--dry-run",
"--check-only",
"--specific-year=2024",
"--counting-strategy=estimate"
],
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"DEBUG": "agm:clean-orphaned-details",
"NODE_ENV": "development",
"AGM_DRY_RUN": "true",
"AGM_CHECK_ONLY": "true",
"AGM_SHOW_PROGRESS": "true"
},
"outputCapture": "std",
"autoAttachChildProcesses": true,
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048"
]
},
{
"name": "Debug Clean Orphaned AppDetails - Production Run",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"envFile": "${workspaceFolder}/environment_prod.env",
"args": [
"--counting-strategy=skip"
],
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"DEBUG": "agm:clean-orphaned-details",
"NODE_ENV": "production",
"AGM_SHOW_PROGRESS": "true",
"PRODUCTION": "true"
},
"outputCapture": "std",
"autoAttachChildProcesses": true,
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=4096"
]
},
{
"name": "Debug Clean Orphaned AppDetails - Date Range",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"envFile": "${workspaceFolder}/environment.env",
"args": [
"--start-date=2024-01-01",
"--end-date=2024-03-31",
"--dry-run",
"--counting-strategy=estimate"
],
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"DEBUG": "agm:clean-orphaned-details",
"NODE_ENV": "development",
"AGM_DRY_RUN": "true",
"AGM_COUNTING_STRATEGY": "estimate",
"AGM_SHOW_PROGRESS": "true"
},
"outputCapture": "std",
"autoAttachChildProcesses": true,
"runtimeVersion": "16.20.2"
},
{
"name": "Debug Clean Orphaned AppDetails - Custom Env Vars",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"envFile": "${workspaceFolder}/environment.env",
"args": [],
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"DEBUG": "agm:clean-orphaned-details",
"NODE_ENV": "development",
"AGM_DRY_RUN": "true",
"AGM_CHECK_ONLY": "true",
"AGM_SPECIFIC_YEAR": "2024",
"AGM_COUNTING_STRATEGY": "estimate",
"AGM_BATCH_SIZE": "1000",
"AGM_SHOW_PROGRESS": "true"
},
"outputCapture": "std",
"autoAttachChildProcesses": true,
"runtimeVersion": "16.20.2"
}
]
}