I have tried many solutions but not anyone works for me. The code executes, but I am not able to place breakpoints & debug it. Could you please help me?
I have tried the following VSCode configuration script:
{
"type": "node",
"request": "launch",
"name": "Typescript Node JS",
"program": "${workspaceFolder}/build/server",
"preLaunchTask": "npm: build",
"sourceMaps": true,
"stopOnEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
]
},
{
"name": "ts node",
"type": "node",
"request": "launch",
"args": [
"${workspaceFolder}/server"
],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector"
}