I have a similar problem to Setting up IntelliJ Idea remote debugging with XDebug, but since no solution was posted there I'll ask it anyways.
I have a Raspberry Pi with Apache 2, PHP, xdebug set up and running on a local network.
I have a desktop with IntelliJ IDEA and the PHP plugin running in the same local network. I already successfully made an SSH connection to the remote server from IntelliJ, so when I hit "Run" it automatically uploads local files to the Raspberry Pi and opens a browser showing the php website. Now I want to be able to debug as well. I followed this page mostly: https://www.jetbrains.com/help/idea/2016.3/configuring-xdebug.html, but it is not working.
When I hit debug the browser opens with ?XDEBUG_SESSION_START=15930
appended to the URL and I see my php website. In IntelliJ the Debugger window opens with the message "Waiting for incoming connection with ide key '15930'". This number changes every time I hit debug, so I have not set xdebug.idekey
in php.ini.
This is the contents of my php.ini:
[XDebug]
zend_extension = /usr/lib/php5/20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_host=192.168.2.108
xdebug.show_exception_trace=On
xdebug.remote_handler=dbgp
xdebug.remote_conneck_back=1
Any ideas what might be wrong? Something with firewall settings to allow incoming connections on port 9000?