2022-07-04 01:42:15 -07:00
|
|
|
{
|
|
|
|
// 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",
|
|
|
|
"configurations": [
|
|
|
|
{
|
2023-01-27 01:18:15 -08:00
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Jest: current file",
|
|
|
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
|
|
"args": ["${fileBasenameNoExtension}"],
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"windows": {
|
|
|
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
|
|
|
|
}
|
|
|
|
},
|
2023-01-10 05:06:12 -08:00
|
|
|
{
|
2022-07-04 01:42:15 -07:00
|
|
|
"name": "Attach to running n8n",
|
|
|
|
"processId": "${command:PickProcess}",
|
|
|
|
"request": "attach",
|
2022-08-19 06:34:02 -07:00
|
|
|
"skipFiles": ["<node_internals>/**"],
|
2022-07-04 01:42:15 -07:00
|
|
|
"type": "node"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Launch n8n with debug",
|
|
|
|
"program": "${workspaceFolder}/packages/cli/bin/n8n",
|
2022-11-04 09:34:47 -07:00
|
|
|
"cwd": "${workspaceFolder}/packages/cli/bin",
|
2022-07-04 01:42:15 -07:00
|
|
|
"request": "launch",
|
2023-01-11 05:09:09 -08:00
|
|
|
"skipFiles": ["<node_internals>/**"],
|
|
|
|
"type": "node",
|
|
|
|
"env": {
|
|
|
|
// "N8N_PORT": "5679",
|
|
|
|
},
|
|
|
|
"outputCapture": "std",
|
|
|
|
"killBehavior": "polite"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Launch n8n CLI dev with debug",
|
|
|
|
"runtimeExecutable": "pnpm",
|
|
|
|
"cwd": "${workspaceFolder}/packages/cli",
|
2023-02-17 01:54:07 -08:00
|
|
|
"runtimeArgs": ["run", "buildAndDev", "--", "--inspect-brk"],
|
2023-01-11 05:09:09 -08:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"restart": true,
|
|
|
|
"autoAttachChildProcesses": true,
|
|
|
|
"request": "launch",
|
2022-08-19 06:34:02 -07:00
|
|
|
"skipFiles": ["<node_internals>/**"],
|
2022-07-04 01:42:15 -07:00
|
|
|
"type": "node",
|
|
|
|
"env": {
|
|
|
|
// "N8N_PORT": "5679",
|
2022-12-14 02:59:06 -08:00
|
|
|
},
|
|
|
|
"outputCapture": "std",
|
|
|
|
"killBehavior": "polite"
|
2022-08-30 01:49:30 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug CLI tests",
|
|
|
|
"cwd": "${workspaceFolder}/packages/cli",
|
|
|
|
"runtimeExecutable": "npm",
|
|
|
|
"args": [
|
|
|
|
"run",
|
2022-11-22 05:11:29 -08:00
|
|
|
"test"
|
2022-08-30 01:49:30 -07:00
|
|
|
// "--",
|
|
|
|
// "ActiveExecutions"
|
|
|
|
],
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch"
|
2022-11-22 05:11:29 -08:00
|
|
|
}
|
2022-07-04 01:42:15 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
/**
|
|
|
|
How this works:
|
|
|
|
|
|
|
|
This file gives VS Code the ability to start and debug n8n.
|
|
|
|
The editor is not debuggable from here.
|
|
|
|
|
|
|
|
The "Run and Debug" tab of your editor should display the "Launch n8n with debug" option.
|
|
|
|
This should start n8n and open a debug console. You can add breakpoints to
|
|
|
|
Parts of the code residing inside `cli`, `core`, `workflow` and `nodes-base` packages
|
|
|
|
|
|
|
|
You can also choose to "Attach to running n8n". This is useful if you
|
|
|
|
have n8n running in another terminal window and want to debug it.
|
|
|
|
Once you click to Debug, VS Code will prompt you to select a process to attach to.
|
|
|
|
*/
|
|
|
|
}
|