PHPStorm will now listen for incoming debugging sessions (from the Vagrant server, which know your IP and will therefore be able to communicate with PHPStorm). Restart the server: sudo /etc/init.d/apache2 restartĪfter you have restarted the apache, click on the little “telephone icon” in the menu bar in PHPStorm. When your scripts seem to “load forever”, then your IP might have changed. Note: Your IP might change every 24hrs, depending on your internet provider. The last line contains your IP, which means the public IP of your computer you are running PHPStorm on. The path in the first line is the location of the xdebug.so file, you can find the path via find / -name 'xdebug.so' 2> /dev/nullįor easy handling simply mark the result of “find” with the mouse, it’s then automatically copied in the clipboard. #xdebug.remote_log="/var/log/xdebug/xdebug.log" Zend_extension="/usr/lib/php5/XXXXXX/xdebug.so" Scroll down to the end of the file and add the following: Your php.ini is somewhere else ? Find it that way: find / -name 'php.ini' 2> /dev/null Open the php.ini with sudo rights: sudo nano /etc/php5/apache2/php.ini Unfortunatly, we ll have to enter some configs into the php.ini manually now (why is linux/xdebug not doing this automatically ?). As we have used Ubuntu 12.04 (Precise Pangolin) while installing this box, we can install xdebug easily with a one-line-command: sudo apt-get install php5-xdebug Start your Vagrant box ( Tools > Vagrant > Up) and log into your box via SSH ( Tools > Start SSH session). You have part 1 of this tutorial ( How to setup a professional local server (in a virtual machine) with Vagrant in PHPStorm) successfully finished, therefore you have PHPStorm open and a Vagrant box running. and integrates seamless into your PHPStorm-&-Vagrant-workflow. This is the one that works without any browser plugins etc. Please also note: There are several methods to do remote debugging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |