Remote PHP Debugging with Netbeans and XDebug

前端 未结 6 799
醉酒成梦
醉酒成梦 2020-12-31 06:35

I\'m trying to use XDebug in the following scenario

  • Physical Host on Windows 7, with Netbeans 7.1.1
  • Virtual guest on Ubuntu, with Apache server and PH
6条回答
  •  再見小時候
    2020-12-31 07:15

    Another option is to have the VM configured to speak to its own localhost:9000 (default for xdebug) and then ssh in from host to VM and establish a port tunnel for that port back to the host machine. Then your host machine debugger simply connects to localhost:9000 and everything should work exactly as if they were running on the same machine.

    See: Multiple users XDebug and PHP Debugging

提交回复
热议问题