Remote Xdebug with VirtualBox

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

    If you have this in your log file:

    I: Connected to client. :-)
    

    That means that Xdebug has successfully made a connection to the IDE.

    The IDE (netbeans) simply then shuts down the connection without even attempting to send any information. This happens if it doesn't know what to do with the filename (file:///home/dev/web/projects/project.com.vm/httpdocs/index.php) in your example. The reason for this is that you do not have the correct path mapping set-up in your IDE.

提交回复
热议问题