Remote Xdebug with VirtualBox

后端 未结 6 1310
盖世英雄少女心
盖世英雄少女心 2021-02-02 00:55

I\'m trying to get remote debugging to work. The PHP is running on a VM and I\'m trying to debug from NetBeans on the host machine.

I\'ve followed the instructions here

6条回答
  •  情书的邮戳
    2021-02-02 01:27

    My solution to this issue was the following:

    1) Enable the port forwarding in the network configuration (using the NAT adapter) I simply used port 9000 and the IP addresses of the host and the guest. Protocol is TCP

    2) Configured my xdebug settings: In my case it was important to set xdebug.remote_host = "The permanent host IP" Then everthing worked perfectly.

    Hope this helps someone out there.

提交回复
热议问题