修改 launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach NestJS WS",
"port": 9229,
"restart": true,
"stopOnEntry": false,
"protocol": "inspector"
}
]
}
再运行:npm run start:debug
本文介绍了如何在使用NestJS框架时,通过修改launch.json文件配置,以便在Node.js环境中启用debug模式,以便于开发者进行代码调试。
2084

被折叠的 条评论
为什么被折叠?



