Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])

I'm having trouble setting up xdebug with PHPStorm 4.0.3.

My issue seems very similiar to this discussion: http://devnet.jetbrains.net/message/5462505

I'm running Windows 7 and my development server is running Debian Squeeze, Apache/2.2.16, PHP 5.3.6. I've compiled xdebug from GIT yesterday having followed this guide:
http://jtreminio.com/2012/07/xdebug-and-you-why-you-should-be-using-a-real-debugger/

My Xdebug config:

extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.show_local_vars=0
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20


xdebug.show_exception_trace=0

I've set up a brand new project to try this, leaving all the defaults in place, even so, I've attached a screenshot of the debug config.

I've created some bookmarks for debugging from here, using the default IDE key (PHPSTORM): http://www.jetbrains.com/phpstorm/marklets/

Here are the steps I follow:
  1. Set a breakpoint in my code
  2. Click the icon for 'Start listen PHP Debug Connections'
  3. Run the 'Start debugger' bookmark.
  4. I browse through the website to the page that triggers the breakpoint and I receive the following event log messages over and over again:
    Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
  5. If I use the 'stop debugging' bookmark or stop PHPStorm listening for debug connections, then the messages stop instantly.

Clearly xdebug on my development server is connecting back to my desktop's IP, but something appears to be screwing up in PHPStorm?

I've be very thankful for any suggestions as I'd love to get xdebug working.



Attachment(s):
phpstorm-php-debug-screen.jpg
4 comments
Comment actions Permalink

Hi Karl,

Please provide xdebug log as described in this ticket: http://youtrack.jetbrains.com/issue/WI-11876#comment=27-352152  as well as PhpStorm debug log http://devnet.jetbrains.net/docs/DOC-1202 (you can submit them to that ticket directly)

0
Comment actions Permalink

Hi,

I've done as you have asked (I think!). If you need anything more, please let me know.

Regards,

Karl

0
Comment actions Permalink

For anyone who finds this, the problem was caused by using 'extension' rather than 'zend_extension' to load the xdebug module in the php.ini.

1
Comment actions Permalink

Good -- that worked for you. I just wonder what was wrong with the 2nd guy (Kirill) then in that linked similar thread -- he had it set up correctly (from this point of view) as it is part of already pre-configured installation.

0

Please sign in to leave a comment.