I tried to debug the TypeScript Express App https://github.com/schul-cloud/node-notification-service/ in Visual Studio Code.
in launch.json I added the configuration
{
"name": "notification service launch",
"type": "node",
"request": "launch",
"args": ["src/app.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"outFiles": [ "${workspaceRoot}/build/**/*.js", "${workspaceRoot}/node_modules/**/*.js" ],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
}
But when I run the configuration the debugger fails with
Error: Cannot find module '@/routes/mail'
How do I start the debugger correctly so that it finds the modules?