xdebug problems - VS 2012 remote to linux apache2

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

xdebug problems - VS 2012 remote to linux apache2

Postby alforno » August 13th, 2013, 11:39 pm

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.
alforno
 
Posts: 4
Joined: August 13th, 2013, 9:32 pm

Re: xdebug problems - VS 2012 remote to linux apache2

Postby alforno » August 13th, 2013, 11:53 pm

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.
alforno
 
Posts: 4
Joined: August 13th, 2013, 9:32 pm

Re: xdebug problems - VS 2012 remote to linux apache2

Postby Miloslav Beno » August 14th, 2013, 2:40 pm

Great! Glad you've solved it!:)
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 55 guests

cron

User Control Panel

Login

Who is online

In total there are 55 users online :: 0 registered, 0 hidden and 55 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 55 guests