我尝试了许多解决方案,但没有人为我工作。代码执行,但我无法放置断点和调试它。你能帮帮我吗?
我尝试了以下 VSCode 配置脚本:
{
"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"
}
跃然一笑
相关分类