Can't trigger debug on straightforward XAMPP setup

Hello experienced PHPStormers...

I haven't found the magic combination to debug a PHP script which gets triggered by another PHP file's ajax call via POST.

php.ini:
...
zend_extension = C:\xampp\php\ext\php_xdebug-2.1.3-5.3-vc9.dll
xdebug.collect_return = 1
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.idekey = "xdebug"
xdebug.trace_output_dir = "C:\xampp\tmp"

In PHPStorm (3.0.1):

Settings->PHP->Servers
Name: local
Host: localhost
Port: 80
Debugger: Xdebug or Zend Debugger (I've tried both)

Settings->PHP->Debug->Xdebug
Debug Port: 9000  [x] can accept external connections
[x] break at first line
[x] force break...
[x] force break...

What am I missing here?  I'm expecting to be able to Start Listen PHP Debug Sessions, set a breakpoint in the php file, and in a separate browser go my my php file that makes the AJAX call, and have the called php script with the breakpoint get snagged.

Thanks for any help, this is driving my bonkers.

1 comment
Comment actions Permalink

Hello Mitch,

Try 'xdebug.remote_autostart' option (http://xdebug.org/docs/remote#remote_autostart)

Thank you for feedback!

0

Please sign in to leave a comment.