Manual:How to debug/with MediaWiki-Vagrant and PHPStorm


 * 1) Install an XDebug browser extension, such as XDebug helper (Chrome, Firefox).
 * 2) Start listening to XDebug connections in PHPStorm with the phone icon (see image in step 2 here)
 * 3) Switch on the XDebug browser extension
 * 4) In the PHPStorm configuration go to Languges & Frameworks > PHP > Servers
 * 5) Add a new server with name and host , port   (or whatever you configured; can be checked with  )
 * 6) Check "Use path mappings"
 * 7) Below that, in the "Absolute path on the server" column set   in the row that corresponds to your vagrant directory, and   to the row that corresponds to the   subdirectory
 * 8) You are ready to go; set some breakpoints (by clicking on the empty space on the border to the left of your code) and make a request (reload the page or make it send an AJAX request)

For command-line debugging, instead of steps 1 and 3 you can use the  command.