mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
41cb0eec6e
* feat(cli): Setup error tracking using Sentry * make error reporting available in the workflows package * address some of the PR comments * create a ErrorReporterProxy like LoggerProxy * remove the `captureError` helper. use ErrorReporterProxy directly * fix linting issues * remove ErrorReporterProxy warnings in tests * check for NODE_ENV === 'production' instead * IErrorReporter -> ErrorReporter * ErrorReporterProxy.getInstance() -> ErrorReporter * allow capturing stacks in warnings as well * make n8n debugging consistent with `npm start` * IReportingOptions -> ReportingOptions * use consistent signature for `error` and `warn` * use Logger instead of console.log
55 lines
1.5 KiB
JSON
55 lines
1.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",
|
|
"configurations": [
|
|
{
|
|
"name": "Attach to running n8n",
|
|
"processId": "${command:PickProcess}",
|
|
"request": "attach",
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"type": "node"
|
|
},
|
|
{
|
|
"name": "Launch n8n with debug",
|
|
"program": "${workspaceFolder}/packages/cli/bin/n8n",
|
|
"cwd": "${workspaceFolder}/packages/cli/bin",
|
|
"request": "launch",
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"type": "node",
|
|
"env": {
|
|
// "N8N_PORT": "5679",
|
|
},
|
|
},
|
|
{
|
|
"name": "Debug CLI tests",
|
|
"cwd": "${workspaceFolder}/packages/cli",
|
|
"runtimeExecutable": "npm",
|
|
"args": [
|
|
"run",
|
|
"test",
|
|
// "--",
|
|
// "ActiveExecutions"
|
|
],
|
|
"type": "node",
|
|
"request": "launch"
|
|
},
|
|
]
|
|
|
|
/**
|
|
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.
|
|
*/
|
|
}
|