2

I'm using XAMPP to run a PHP application in Windows 8, using PHP v5.5.6

I've downloaded the php_xdebug*.dll and placed it in C:\xampp\php\ext\

I've configured the [XDebug] section in C:\xampp\php\php.ini like this:

[XDebug]
zend_extension=C:\xampp\php\ext\php_xdebug-2.2.7-5.5-vc11.dll
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\ProgramData\phpDesigner\XDebugCache"

I've also configured the Prefferences->Debugger to use the C:\xampp\php\php-cgi.exe and the C:\xampp\php\php.ini

But still I can not debug my code. When I click on the "Debug" button, nothing happens. If i go to Debug->Xdebug Server->Start, nothing happens.

What am I missing? Thanks.

4

1 回答 1

0

假设您已正确安装,您应该转到 Run -> Click Start listening for PHP connections(或类似的东西)。

现在 phpstorm 正在监听连接。返回浏览器并点击刷新。如果一切都按照应有的方式进行配置(顺便说一下,请查看 phpstorm 中的 xdebug、port 和所有其他的首选项)phpstorm 应该能够捕获连接并让您有机会进入线路(F7、F8)

于 2015-02-13T11:39:40.983 回答