Cannot get Xdebug to work

I have tried the zero-configuration as well as the project configuration on MAMP and cannot get the xdebug to work via the browser. I can however setup a single file to be debugged straight from PHPStorm but it doesn't show the site in my browser.

I have everything setup but its like my localsite isn't returning information back to phpstorm as it just sits there saying waiting for connection with ide key xxxxx

Any ideas on how to get this to work via the Debug Run from PhpStorm?

0
5 comments

Here is the idea.log

2011-08-03 15:47:29,644 [24930200]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 15:48:23,165 [24983721]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 15:48:23,166 [24983722]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 15:48:24,443 [24984999]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 15:48:26,627 [24987183]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 15:48:26,628 [24987184]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 15:48:27,443 [24987999]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 15:48:28,985 [24989541]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 15:48:28,986 [24989542]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 15:48:31,950 [24992506]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 15:48:34,050 [24994606]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 15:48:34,051 [24994607]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 15:48:35,037 [24995593]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 15:48:38,797 [24999353]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 15:48:38,798 [24999354]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 15:48:40,040 [25000596]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 15:56:45,370 [25485926]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 15:56:45,371 [25485927]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 15:56:50,746 [25491302]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:01:57,911 [25798467]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:01:57,912 [25798468]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:13:03,473 [26464029]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:30:56,660 [27537216]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:30:56,660 [27537216]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:30:57,856 [27538412]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:31:07,001 [27547557]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:31:07,002 [27547558]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:31:07,822 [27548378]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:31:10,905 [27551461]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:31:10,906 [27551462]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:31:25,890 [27566446]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:31:38,495 [27579051]   INFO - hp.connection.ServerConnection - StartingZend Debugger on port 10137
2011-08-03 16:31:38,495 [27579051]   INFO - hp.connection.ServerConnection - StartingZend Debugger Settings Broadcasting on port 20080
2011-08-03 16:49:05,218 [28625774]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:49:05,218 [28625774]   INFO - hp.connection.ServerConnection - Stopping Zend Debugger on port 10137
2011-08-03 16:49:05,218 [28625774]   INFO - hp.connection.ServerConnection - Stopping Zend Debugger Settings Broadcasting on port 20080
2011-08-03 16:49:05,218 [28625774]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:49:05,218 [28625774]   INFO - hp.connection.ServerConnection - Stopped listening on port 10137
2011-08-03 16:49:05,218 [28625774]   INFO - hp.connection.ServerConnection - Stopped listening on port 20080
2011-08-03 16:49:13,182 [28633738]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:49:13,182 [28633738]   INFO - hp.connection.ServerConnection - StartingZend Debugger on port 10137
2011-08-03 16:49:13,183 [28633739]   INFO - hp.connection.ServerConnection - StartingZend Debugger Settings Broadcasting on port 20080
2011-08-03 16:49:26,453 [28647009]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:49:26,453 [28647009]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:49:26,453 [28647009]   INFO - hp.connection.ServerConnection - Stopping Zend Debugger on port 10137
2011-08-03 16:49:26,453 [28647009]   INFO - hp.connection.ServerConnection - Stopping Zend Debugger Settings Broadcasting on port 20080
2011-08-03 16:49:26,453 [28647009]   INFO - hp.connection.ServerConnection - Stopped listening on port 10137
2011-08-03 16:49:26,453 [28647009]   INFO - hp.connection.ServerConnection - Stopped listening on port 20080
2011-08-03 16:49:54,843 [28675399]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:49:54,844 [28675400]   INFO - hp.connection.ServerConnection - StartingZend Debugger on port 10137
2011-08-03 16:49:54,845 [28675401]   INFO - hp.connection.ServerConnection - StartingZend Debugger Settings Broadcasting on port 20080
2011-08-03 16:49:58,919 [28679475]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:49:58,919 [28679475]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:49:58,919 [28679475]   INFO - hp.connection.ServerConnection - Stopping Zend Debugger on port 10137
2011-08-03 16:49:58,919 [28679475]   INFO - hp.connection.ServerConnection - Stopped listening on port 10137
2011-08-03 16:49:58,919 [28679475]   INFO - hp.connection.ServerConnection - Stopping Zend Debugger Settings Broadcasting on port 20080
2011-08-03 16:49:58,920 [28679476]   INFO - hp.connection.ServerConnection - Stopped listening on port 20080
2011-08-03 16:50:00,619 [28681175]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:50:51,325 [28731881]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:50:51,325 [28731881]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:51:19,836 [28760392]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:53:07,717 [28868273]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:53:07,718 [28868274]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:53:09,934 [28870490]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:54:39,028 [28959584]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:54:39,029 [28959585]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:54:40,520 [28961076]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-08-03 16:55:17,728 [28998284]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000
2011-08-03 16:55:17,729 [28998285]   INFO - hp.connection.ServerConnection - Stopped listening on port 9000
2011-08-03 16:55:57,485 [29038041]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000

And here is my php.ini

zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
;;xdebug.idekey="PHPSTORM"
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.var_display_max_data = 99999


Also just an FYI I have tried the zero-config tutorial several times as well as the a few other tutorials on the web.

0

No that didn't work. I tried it earlier today. It's not a cli is it?

0

After doing a computer reboot it started working...

0

Rebooted pc. I guess apache was having issues or something...

0

Please sign in to leave a comment.