Remote debugging connection problems

Hi all,

I'm evaluating PHPstorm for our dev team at the moment and am having difficulties getting remote debugging working. I would love to get this working so I can evaluate it properly so would appreciate some assistance.

I have a fairly typical (I guess) setup. My remote host is a linux (Ubuntu) machine with PHP 5.1.6 and Xdebug 2.0.2 - see screenshot 'xdebug-phpinfo.gif' of Xdebug section of my phpinfo(). My development computer is a Windows 7 PC, this is where PHPStorm is installed. I have the remote host mapped to drive U on my PC.

I have created a new project in PHPStorm by File -> Create new project from existing files and selecting the second option 'My webserver is on remote host, mounted drive etc' - the webserver root url in this case is http://bournvillecollege.devsites.cab.internal and that all resolves correctly etc. So PHPStorm downloaded a local copy of all of the website files when I created the project and the local root is 'C:\Users\Kevin Price-Ward\PhpstormProjects\Bournville College' - all this seems fairly straightforward.

My issue is that while I can get debugging running on localhost with my WAMP installation on my PC, I can't get it working on the remote host. My browser of choice is Firefox (5) and I've installed the bookmarklets but with no joy. When I hit debug on my (simple) php test file called 'debug.php', the Debugger says 'Waiting for incoming connection with ide key 'PHPSTORM' and when I visit http://bournvillecollege.devsites.cab.internal/debug.php - I would expect the connection to be made, but nothing happens.

I've got the 'Start listening PHP debug connections' button switched on, I've checked that my firewall is allowing PHPStorm through and it is. I can't really think what else could be the problem.

Here is a bit more background info on my settings:

I have set the project PHP settings as per the attached screenshot 'php-settings.gif' - not sure if this is necessary though as I'm remote debugging?

I am just using the default debug settings, see screenshot 'php-debug-settings.gif'. I've also attached a screengrab of my php.ini xdebug settings 'php-ini-xdebug.gif'

In my server settings under PHP, I think I need to 'Use path mappings' but I'm not sure what I would set the absolute path on the server to, whether it's the 'mapped' path, i.e. 'U:\devsites\BournvilleCollege\wordpress\public_html' or the server path '/var/www/devsites/BournvilleCollege/wordpress/public_html' - see screenshot 'php-servers.gif' - I've tried both but neither work.

In my Run/Debug configurations I have added a PHP Remote Debug configuration and selected the Bournville server and set the Ide key to PHPSTORM.

Any help would be fab.

Many thanks
Kevin



Attachment(s):
php-servers.gif
php-ini-xdebug.gif
php-debug-settings.gif
php-settings.gif
xdebug-phpinfo.gif
2 comments
Comment actions Permalink

How typical! I just finish writing an exhaustive post about the problem and I suddenly get a brainwave and fix it. Simple really, I hadn't specified xdebug.remote_host in my php.ini, put that in and hey presto, it now works! Hope this may help others with the same problem though.

K

0
Comment actions Permalink

Hello Kevin,

Do you still have any troubles with debugging?

In my Run/Debug configurations I have added a PHP Remote Debug configuration and selected the Bournville server and set the Ide key to PHPSTORM.

You don't need to use any Run\Debug configurations when 'Start listen PHP debug connections' button is enabled.

I'm evaluating PHPstorm for our dev team at the moment and am having  difficulties getting remote debugging working. I would love to get this  working so I can evaluate it properly so would appreciate some  assistance.

I  have a fairly typical (I guess) setup. My remote host is a linux  (Ubuntu) machine with PHP 5.1.6 and Xdebug 2.0.2 - see screenshot  'xdebug-phpinfo.gif' of Xdebug section of my phpinfo(). My development  computer is a Windows 7 PC, this is where PHPStorm is installed. I have  the remote host mapped to drive U on my PC.


This post might be usefull for you - http://derickrethans.nl/debugging-with-multiple-users.html

Thank you for feedback!

0

Please sign in to leave a comment.