Connecting WebStorm to a remote node.js debugging session

后端 未结 4 682
梦毁少年i
梦毁少年i 2020-12-14 17:35

I am running a Node.js application within a Linux VM in Oracle VirtualBox. The port 5858 on the VM is forwarded to the port 5858 on the localhost.<

4条回答
  •  再見小時候
    2020-12-14 18:15

    This is what I do in my linux Debian VM:

    install balancer

    sudo apt-get install balance -y

    create a route in balancer to reroute your 5858 port to 5859

    balance 5859 127.0.0.1:5858

    start your app

    node --debug app.js

    now you can access it from outside the VM on port 5859

提交回复
热议问题