Hi guys, I'm having a nightmare getting XDebug working properly with PHPStorm 7.1 (I've decided to try it out and see if it's worth the switch from Netbeans).
I am using Ubuntu 13.04, Apache 2.*, PHP 5.4.9. Xdebug is installed according to phpinfo.
I have a the following setup:
- A vhost directs every request through a dispatcher.php file (front controller pattern)
- The files are located in ~/Dev/work/trunk
- The dispatcher is in ~/Dev/work/trunk/some/directories/here/dispatcher.php
- I can access this application by going to http://trunk.local
I am not using any remote server (apart from SVN for commits, which seems to be working fine in PHPstorm). I simply want to get PHPStorm using xdebug in like netbeans could.
In "settings", PHP language level is 5.4, and the interpreter is set to PHP home: "/usr/bin" and the Debugger is "Xdebug 2.2.1". So it seems to have found it okay.
In Servers, I have put host: 127.0.0.1 and port 80. The Debugger is "Xdebug". Here's an issue: Clicking "Validate remote environment" and choosing a deployment server Localhost (which uses the "In Place" option with the server root as http://trunk.local), then clicking validate, says "Failed to execute validation script: 'Could not read from http://trunk.local/_intellij_phpdebug_validator.php" because it is not a file.'.
The ports both in Xdebug settings in my php.ini and in the PHP > Debug settings in PHPstorm are "9000".
I have clicked "Start listen for PHP Debug connections" at the top, and I have the Google Chrome extension from JB and also a php xdebug helper installed.
Clicking "Debug [name]" at the top just shows "Waiting for incoming connection with ide key 'PHPSTORM'". That's it! Nothing in the browser.
Can someone help me sort this out?