I am trying to work with remote debugging. PHP is running in a virtual machine, and I'm trying to debug NetBeans on a host machine.
I followed the instructions here , redirected port 9000 to the Windows 7 firewall and to the VirtualBox network settings, and configured path mappings in NetBeans. My xdebug settings are as follows:
xdebug.remote_enable = On xdebug.remote_connect_back = On xdebug.idekey = "netbeans-xdebug" xdebug.remote_log = /tmp/xdebug.log
When I load the URL that I want to debug (using the correct ideck), it logs the following:
I: Checking remote connect back address. I: Remote address found, connecting to 192.168.0.1:9000. I: Connected to client. :-) -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///home/dev/web/projects/project.com.vm/httpdocs/index.php" language="PHP" protocol_version="1.0" appid="1380" idekey="netbeans-xdebug"> <engine version="2.2.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2012 by Derick Rethans]]></copyright></init> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
However, NetBeans is waiting for a connection. I have a setting to stop on the first line, except that you have a breakpoint set. The log file will include a "Connected to Client" message, even if NetBeans is not listening.
Any idea what I might be missing?
Thanks.
Zach
source share