如何在PHPDesigner8上启动Xdebug服务器


How to start the Xdebug server on PHPDesigner 8

我使用XAMPP在Windows 8中运行一个PHP应用程序,使用PHP v.5.6

我已经下载了php_xdebug*.dll并将其放置在C:'xampp'php'ext'

我在C:'xampp'php'php.ini中配置了[XDebug]部分,如下所示:

[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"

我还配置了Preferences->Debugger以使用C:'xampp'php'php-cgi.exeC:'xampp'php'php.ini

但是我仍然无法调试我的代码。当我点击"调试"按钮时,什么都不会发生。如果我转到调试->Xdebug服务器->启动,则不会发生任何事情。

我错过了什么?谢谢

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

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