我收到错误:无法连接到运行时进程,10000 毫秒后超时 - (原因:无法连接到目标)
NodeJs v4.3.1 在 WSL 上运行。
下面是我的launch.json
"type": "node",
"request": "attach",
"name": "Attach to WSL",
"port": 3000,
"address": "localhost",
"restart": true,
"protocol": "inspector",
"localRoot": "${workspaceFolder}/web-frontend",
"remoteRoot": "/mnt/c/workspace/.../web-frontend"
WSL 使用来自 Windows 的路径,因此 localRoot 和 remoteRoot 是相同的。
到目前为止我错过了什么?