![phpstorm ubuntu install phpstorm ubuntu install](https://i.stack.imgur.com/hu7it.png)
If you have a breakpoint defined, the browser will appear to ‘hang’ or ‘spin’ or ‘load’ forever. Make sure vagrant is selected in the drop-down next to the green play arrow icon in the header.Ĭlick the green bug icon in the header (hover text is Debug ‘vagrant’ Shift+F9)Ī new browser window will open with a url something like: “” Hovering over it, it will say Start Listen PHP Debug ConnectionsĬlick Run -> Start Listen PHP Debug Connections Start Debugger There’s a telephone icon in the icon bar, with a very small green bug and a red circle with a line through it. Server: 192.168.50.4 should be in the dropdownīrowser: Chrome Start Listening for Debug Connections Under the Run dropdown menu, click Edit Configurations…Ĭlick PHP Web Application, then click the green + Next to the www directory, on the right under Absolute path on the server, enter: /data/www (or wherever your files are stored on the vagrant box)
![phpstorm ubuntu install phpstorm ubuntu install](https://linuxhint.com/wp-content/uploads/2020/04/43-4-768x550.png)
Under File/Directory on the left, Browse to Project Files -> checkoutdirwwwproject-name Under Project Settings on the left, browse to PHP -> ServersĬheck “Use path mappings (select if the server is remote or symlinks are used)” If you’re using SVN, configure PhpStorm to use SVN and check out the project into a new folder. Configuring PHPStorm Create Projectįirst, create a new project. Your IDE (or you, via a url) need to start and stop xdebug. Your IDE needs to know the host IP as well as the path the files reside in on the server. Your IDE needs to listen for connections on port 9000. Xdebug.remote_host=10.0.2.2 IDE-Environments IP, from vagrant box. Xdebug.remote_log="/var/log/xdebug/xdebug.log" use the following command to find xdebug.so: Needed to add the following to the php.ini to configure it for xdebug:
![phpstorm ubuntu install phpstorm ubuntu install](https://kirelos.com/wp-content/uploads/2020/04/echo/44-4.png)
Added to apt-get packages list:Įcho "Creating xdebug log directory: /var/log/xdebug"Įcho "Changing xdebug log directory owner to www-data"
Phpstorm ubuntu install install#
Install php5-dev php-pear using apt-get, install xdebug using pecl, creating a properly owned folder in /var/log to store the xdebug log file. Good instructions here: Updates to the Provisioning Script:
Phpstorm ubuntu install code#
To be able to step through code using the IDE of our choice, we need to install Xdebug onto our Vagrant Box.