I’ve set up Xdebug to debug remotely as my set up consists of windows 10 + Linux VM, but can’t seem to get it to work in Komodo. It seems like I am missing something. I’ve spent many hours reading docs and forum posts. Here are my settings:
Komodo & Browser is insatlled on my Windows 10 PC.
I use a Virtual Machine for my LAMP setup, and Komodo connects to my VM remotely to edit files.
Xdebug is installed on my VM and it is running
I am using the Xdebug Helper Chrome extension
Komodo Settings:
I am running a debugger proxy and Komodo should use it is checked.
Komodo listener status results:
Debugger Listening: Yes
Host Address: - {Empty}
Host Port: 8888
Proxy Enabled: Yes
Proxy Key: komodo
Proxy Client Address: - {Empty}
Proxy Client Port: 0
Current Sessions: 0
Current Connections: 0
Total Connections: 1
Now, I start a debug session in the browser with the xdebug helper extension, I add a break point to a PHP file, reload the page and nothing breaks and no debug results in komodo.
Have I done anything wrong or am I missing anything?
That is a very good point, can’t believe I missed that! I must have forgotten to update it after changing ports. I’ve updated now, still nothing but I’ll restart everything and keep trying.
Make sure you restart your web server also. If that doesn’t work; have you verified that your web server is using the right php.ini? You should verify by checking the phpinfo() output.
I can confirm this is still not working for me after restarting host machine & web server, and definitely using the correct php.ini file. I might try set the dbgp on a different port again or maybe set up the dbg proxy on the remote machine instead.
Perhaps that is your issue; why are you using a proxy at all? Given that you say you are running the server on a VM it does not seem like you need a proxy and you are only needlessly complicating the setup.
I was hoping not to use a proxy, and I have tried without a proxy, with a windows proxy and with a linux proxy.
If I go without a proxy, I uncheck komodo remote debugger setting and set to port 8888, listener status is successful and I have these settings in php.ini:
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp (Tried with and without this)
xdebug.remote_mode = req
xdebug.remote_host = “192.168.112.43” (Host machine IP)
xdebug.remote_port = 8888
xdebug.idekey = “komodo”
These settings do not work. I am very close to getting this working using the linux proxy. Hopefully I can post my solution here soon! Thanks
Ok, I turned off the autostart (I had it off before). I noticed that the PHP debugging bits (dll file) are already in the komodo IDE installation files, so I didn’t download them, but I did download the Python Remote debugging client (Windows & Linux). Xdebug does show up in the php_info() page.
If I execute this command on linux in the python debugger:
Now this is as close I got but there is 1 problem, this Server:onConnect IP (192.168.56.101) is not the current IP of my VM, it should be 192.168.56.102, so I don’t know where it’s getting 101 from, as that is an old eth setting in the VM. I’m hoping everything would work if it finds the 102 IP.
I got this working on my home set up without the proxy. I am pretty sure I had these exact same settings on my work setup anyway, so I think the problem had something to do with the connection from the VM to the PC.
Here are my final settings incase it may be useful in future: