Remote Xdebug with VirtualBox

后端 未结 6 1257
盖世英雄少女心
盖世英雄少女心 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:12

    I added 4 options to use Xdebug in my projects in a virtual machine:

    xdebug.remote_enable = On
    xdebug.remote_host = [YOUR_HOST_IP]
    xdebug.remote_connect_back = On
    xdebug.remote_autostart = On
    

    As long as your debugger is listening, it should break on a breakpoint.

提交回复
热议问题