- Added the following lines, according to /etc/php5/apache2/conf.d/20-xdebug.ini
debug.remote_host= 127.0.0.1
xdebug.remote_port=9000
xdebug.max_nesting_level=200
xdebug.remote_enable=1
xdebug.idekey="PHPSTORM"
xdebug.remote_autostart = 1
- Restarted apache:
sudo service apache2 restart
- Added a breakpoint (Ctrl + Shift + B) on line 15 in https://github.com/samuell/RDFIO/blob/master/specials/SpecialSPARQLImport_body.php#L15
- Clicked the menus in PHPStorm: Run > Start Listening for PHP Debug Connections
- Activated a debug session on the SPARQLImport special page, by adding
?XDEBUG_SESSION_START=1to the URL, so that the URL becameshttp://localhost/smw122/index.php/Special:SPARQLEndpoint?XDEBUG_SESSION_START=1(in my case) ... this activated a debug session in PHPStorm. - Clicked the red line in the debug log, about some files being outside the project.
- In the dialog that opened, uncheck the checkbox for "use path mappings"
- Click OK
- In PHPStorm menus, click "Run > Resume", or F8
- Now your breakpoint on line 15 should be catched (with a blue highlight in my case)