The issue Im having is that my development machine is remote (EC2 instance) and everytime I checkout locally I have to reset the remote head and checkout remotely as well. This is the Xdebug stuff you need to put in your php.ini file in your Digital Ocean doplet: xdebug. Bit of a curve ball here, I use PhpStorm to handle my Git VCS processing including checkout. If it doesn’t try rebooting some stuff.PHPSTORM should start blinking now to ask you if you want to allow the incomming connection.Make sure the Xdebug helper plugin is installed in your browser, activate it and refresh the page. Open your browser and go to the website you would like to debug (which hosted on the remote server.).Because of the SSH tunnel we don’t need any extra configuration.After the SSH tunnel is setup (should be okay, if the previous command succesfully logged you in to the remote machine), click the “Start listening for PHP Debug connections” button.But you could use Putty too if you want.) Ssh -R 9000:127.0.0.1:9000 using the GIT Bash on Windows to get all these cool linux command. To set op the SSH tunnel that will allow PHPSTORM to listen to incomming Xdebug connections enter this command:.So, better say goodby to “Remote” debugging, or prepare yourself for some serious hair pulling. Because firewalls will be firewalls, we probably will need an SSH tunnel set up to the server in order for XDebug to work.Set up a remote server with PHP and XDebug installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |