Page 1 of 1

xdebug problems - VS 2012 remote to linux apache2

PostPosted: August 13th, 2013, 11:39 pm
by alforno
Hello. I'm trying to get remote debugging working with one of my linux boxes. I'm using Visual Studio 2012 as the debugger. I've successfully installed xdebug (linux) using the phpinfo output analyzer instructions. I've added the following lines to my php.ini (linux).

Code: Select all
zend_extension=/usr/lib/php5/20100525/xdebug.so

[xdebug]
xdebug.remote_enable=on
xdebug.remote_host = “192.168.2.11″
xdebug.remote_port=9000
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_handler=dbgp
xdebug.idekey="php-vs"


My startup options in vs seem to be correct. I press F5 and the correct page opens up and the system notification tells me it's waiting for XDEBUG enabled web requests.

The problem is that my breakpoint doesn't get hit. The same breakpoint does get hit when using the PHP built-in web server.

Btw, I'm using the default port 9000 and that is the setting in vs.

Please advise.

Re: xdebug problems - VS 2012 remote to linux apache2

PostPosted: August 13th, 2013, 11:53 pm
by alforno
I'm getting good at answering my own support questions here. :D

The problem was that I had some weird double quote characters in the config file and also had to manually add port 9000 to my windows firewall.

This is awesome! PHP debugging! Back to work.

Re: xdebug problems - VS 2012 remote to linux apache2

PostPosted: August 14th, 2013, 2:40 pm
by Miloslav Beno
Great! Glad you've solved it!:)