First things first:
PHP version is
PHP 5.4.9-4ubuntu2.4 (cli) (built: Dec 12 2013 04:26:30)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
Important: XDebug is properly configured cause everything works on my localhost.
But I just can't set up remote debug here are all the images and steps I made, PLEASE HELP and advice me.
Step 1 - Basic click on Create new project from existing files.
Step 2 - Choose FTP
Step 3 - Project settings on file system
Step 4 - Setting FTP connection and Advanced - Passive mode
Step 5 - Run/Debug configuration, choose PHP remote Debug, and typed in Ide key: PHPSTORM
Step 6 - Servers and validate remote enviroment, here pops out WARNING: No debug extension loaded
Step 7 - Php ini configuration.
So in the end....
1) Is there anything that I had to do on remote server from my client for this thing to work? Maybe install XDEBUG also there, maybe you will find this questions silly, believe me I lost 3 days already in this and I am little frustrated to say the lease. so please help.
2) I will happily upload more screenshots or answer to any question you might have in order to help me out. I know it is something simple but I am breaking my head over it.
Again please help, I passed certainly 15 pages on remote debug in PHPSTROM and all of them were just not precise enough. Like you can see in first pictures everything works fine on my localhost.
To do this, go to Settings/Preferences | Build, Execution, Deployment | Debugger and select Drag to the editor or click with middle mouse button. Clicking a breakpoint will then enable or disable it.
The main difference between using XDebug on your local machine, and using XDebug with a remote system, is that you have to configure two things:
1) The xdebug.remote_host on your server outside your network is going to be YOUR IP ADDRESS, as in, what you get if you go to whatismyip.com. This IP address is prone to change. (You can use dynamic DNS from certain providers and a hostname instead of an IP if your home IP changes a lot). Anyway, When XDebug starts on the remote server, it becomes the CLIENT looking for YOUR XDEBUG SERVER running on your laptop on port 9000.
This is what confuses so many users of XDebug. That then leads to the following:
2) You have to edit your home/office firewall (presumably this is the traffic cop on the IP you entered into your xdebug.ini or php.ini in step 1) to port forward incoming traffic on port 9000 to your laptop's IP on your home/office network.
The best resource about this is (IMO) here: http://matthardy.net/blog/configuring-phpstorm-xdebug-dbgp-proxy-settings-remote-debugging-multiple-users/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With