【发布时间】:2020-12-23 21:15:55
【问题描述】:
我正在尝试远程调试在 Linux 上的 Azure 应用服务上运行的 node.js 应用。 VSCode 的 Azure Remote Debugging for Node.js 对我不起作用,所以我正在尝试通过使用 Azure CLI 的 create-remote-connection 命令打开的 SSH 会话来使用 remote debugging。
az webapp create-remote-connection –g [resource group] -n [app name] -p 9229
我的 launch.json 文件有
{
"type": "node",
"request": "attach",
"name": "Attach to remote",
"address": "127.0.0.1",
"port": 9229,
"localRoot": "${workspaceFolder}",
"remoteRoot": "/home/site/wwwroot",
}
接下来,我在我的机器上运行 SSH
ssh -L 9229:127.0.0.1:9229 root@127.0.0.1
但我不知道下一步该做什么。在 Linux 上的 Azure 应用服务上运行时,如何远程实时调试此应用?
【问题讨论】:
标签: node.js azure visual-studio-code azure-web-app-service