mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
eae8b79b2e
A new debug configuration has been added to the launch.json file. This configuration allows for launching Copilot locally by running the "start" script using npm. It skips files in the "<node_internals>" directory and is specifically configured for debugging Node.js applications. This change improves the development experience by enabling easy debugging of Copilot locally.
247 lines
7.5 KiB
JSON
247 lines
7.5 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"tasks": [
|
|
{
|
|
"type": "docker-run",
|
|
"label": "docker-run: debug",
|
|
"dependsOn": [
|
|
"docker-build"
|
|
],
|
|
"dockerRun": {
|
|
"command": "nest start --debug 127.0.0.1:9229"
|
|
},
|
|
"node": {
|
|
"enableDebugging": true
|
|
}
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "Debug: Copilot Locally",
|
|
"request": "launch",
|
|
"localRoot": "${workspaceFolder}/Copilot",
|
|
"runtimeArgs": [
|
|
"run-script",
|
|
"start"
|
|
],
|
|
"runtimeExecutable": "npm",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node"
|
|
},
|
|
{
|
|
"name": "Debug Infrastructure Agent",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "./InfrastructureAgent",
|
|
"args": ["start"],
|
|
},
|
|
{
|
|
"name": "Node.js - Debug Current File",
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true,
|
|
"request": "launch",
|
|
"program": "${file}"
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/App",
|
|
"name": "App: Debug with Docker",
|
|
"port": 9232,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/TestServer",
|
|
"name": "Test Server: Debug with Docker",
|
|
"port": 9141,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/Probe",
|
|
"name": "Probe: Debug with Docker",
|
|
"port": 9655,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/Ingestor",
|
|
"name": "Ingestor: Debug with Docker",
|
|
"port": 9932,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/IsolatedVM",
|
|
"name": "Isolated VM: Debug with Docker",
|
|
"port": 9974,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/Workflow",
|
|
"name": "Workflow: Debug with Docker",
|
|
"port": 9212,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/Realtime",
|
|
"name": "Realtime: Debug with Docker",
|
|
"port": 9250,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/Workers",
|
|
"name": "Workers: Debug with Docker",
|
|
"port": 9654,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/StatusPage",
|
|
"name": "Status Page API${cwd}: Debug with Docker",
|
|
"port": 9764,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/HttpTestServer",
|
|
"name": "HTTP Test Server: Debug with Docker",
|
|
"port": 9234,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/script-runnner",
|
|
"name": "Script Runner: Debug with Docker",
|
|
"port": 9236,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"address": "127.0.0.1",
|
|
"localRoot": "${workspaceFolder}/InitScript",
|
|
"name": "Init Script: Debug with Docker",
|
|
"port": 9237,
|
|
"remoteRoot": "/usr/src/app",
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true
|
|
},
|
|
{
|
|
"name": "CommonServer: Debug Tests",
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true,
|
|
"request": "launch",
|
|
"cwd": "${workspaceRoot}/CommonServer",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": [
|
|
"run-script",
|
|
"debug:test"
|
|
],
|
|
},
|
|
{
|
|
"name": "Accounts: Debug Local Files",
|
|
"type": "node",
|
|
"restart": true,
|
|
"autoAttachChildProcesses": true,
|
|
"request": "launch",
|
|
"cwd": "${workspaceRoot}/Accounts",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": [
|
|
"run-script",
|
|
"dev"
|
|
],
|
|
}
|
|
]
|
|
} |