[英]How to start the Xdebug server on PHPDesigner 8
I'm using XAMPP to run a PHP application in Windows 8, using PHP v5.5.6 我正在使用XAMPP在Windows 8中使用PHP v5.5.6运行PHP应用程序
I've downloaded the php_xdebug*.dll
and placed it in C:\\xampp\\php\\ext\\
我已经下载了php_xdebug*.dll
并将其放在C:\\xampp\\php\\ext\\
I've configured the [XDebug]
section in C:\\xampp\\php\\php.ini
like this: 我已经在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"
I've also configured the Prefferences->Debugger to use the C:\\xampp\\php\\php-cgi.exe
and the C:\\xampp\\php\\php.ini
我还配置了Prefferences-> Debugger来使用C:\\xampp\\php\\php-cgi.exe
和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. 如果我去Debug-> Xdebug Server-> Start,没有任何反应。
What am I missing? 我错过了什么? Thanks. 谢谢。
Suppose that you have installed correctly you should go to Run -> Click Start listening for PHP connections
( or something like that ). 假设您已正确安装,您应该转到Run -> Click Start listening for PHP connections
(或类似的东西)。
Now phpstorm is listening for connection. 现在phpstorm正在监听连接。 Go back to you browser and hit refresh. 返回浏览器并点击刷新。 If everything was configured as it should ( btw have a look in preferences in phpstorm for xdebug, port and all others ) phpstorm should be able to catch the connection and give you the opportunity to step into lines ( F7, F8 ) 如果一切都按照它应该配置(顺便看看phpstorm for xdebug,port和所有其他的首选项),phpstorm应该能够捕获连接并让你有机会进入行(F7,F8)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.