29.08.2016

Installing and configuring xDebug (for using with PHP Storm)

Install xDebug via console Linux:

Configure xDebug (add next content to file “/etc/php5/mods-available/xdebug.ini” after string “zend_extension=….”). You can use any installed editor to do it (nano, vim, etc):

Restart APACHE:

Install Google Chrome extension “xDebug helper” from here.
Configure PHP Storm (for each projects):

File -> Settings -> Languages & Frameworks -> PHP -> Servers:

Press “+”;

Name: {your_project_name}.dev;

Host: {your_project_name}.dev;

Port: 80 (or 443 if it requires);

Debugger: Xdebug

Press Apply

Run -> Edit Configurations…:

Press “+”;

Choose PHP Web application;

Name: {your_project_name}.dev;

Server: {your_project_name}.dev (choose from list);

Press Apply