我嘗試了許多解決方案,但沒有人為我工作。代碼執(zhí)行,但我無法放置斷點和調(diào)試它。你能幫幫我嗎?我嘗試了以下 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" }
可視化工作室代碼斷點在節(jié)點上不起作用.js使用類型腳本
四季花海
2022-09-16 21:34:37