Install xdebug on the server
Installing Xdebug on the server is not in the scope of this article. You can find related articles here:
- Install xdebug on Ubuntu: http://ubuntuforums.org/….
- Youtube: install xdebug on windows XP
Configure xdebug in phpstorm’s settings
Open the phpstorm Settings window and go to PHP -> Debug
Apply the settings as shown in the image below.
Beware: when you don’t want the debugging to break on the first line (for testing whether debugging works), remove the check mark in front of the option ‘Force break at the first line when no path mapping specified’
Create a debug-server
The debug-server is the server where your webapplication code resides. From the menu, choose Run -> Edit Configurations.
Start listening for incoming debug sessions in phpstorm
Enable debugging in Chrome
After the extension is installed and you restarted your browser, visit your project webpage and click on the little bug-icon and choose option ‘Debug‘.
Then refresh your page and phpstorm will receive the debug-session and will start debugging!