vscode远程调试node服务端

 

    {
            "type": "node",
            "request": "attach",
            "name": "调试名称",
            "address": "远程调试IP地址",
            "port": 端口号,
            "localRoot": "${workspaceFolder}",
            "remoteRoot": "远程项目绝对地址",
            "restart": true,
            "protocol": "inspector"
    }

如果出现无法连接到远程主机 ECONNREFUSED的情况,需要在远程机器上的启动命令里面改一下inspect的ip地址,如下:

 

node --inspect=0.0.0.0:端口号

 

related:https://github.com/Microsoft/vscode/issues/22306

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-05-11
  • 2021-09-09
  • 2021-08-26
  • 2021-04-01
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2021-09-11
  • 2021-06-24
  • 2021-08-15
  • 2022-12-23
  • 2022-01-12
相关资源
相似解决方案