php eclipse调试 [英] php eclipse debugging
问题描述
我正在使用Eclipse运行php脚本。当设置了断点并运行脚本时,会引发此错误。
I am runing a php script using eclipse. when a set breakpoint and run the script it throws me this error.
形成错误,显然我已更改了php.ini文件。但我不知道要更改zend或xdebug必须更改什么。甚至我都不知道它们的区别。
form the error it is apparent that i have change something the php.ini file. but i dont know what i have to change to make either zend or xdebug. even i dont know what the differnce b/w them.
出现错误
会话无法开始。
为了生成调试信息,请确保已将调试器正确配置为php.ini指令
The session could not be started. In order to generate debug information, please make sure that the debugger is properly configured as a php.ini directive
推荐答案
我也遇到了这个错误,结果是我的Eclipse配置错误。在Eclipse中,我已配置(在Windows>首选项中) PHP Executables,但未配置PHP Debug设置。在PHP Debug中,我必须将 PHP Debugger设置为XDebug(我的设置为 Zend Debugger)。我还必须设置 PHP Executable并切换 Enable CLI Debug。我写了关于此的博客帖子(带有一些屏幕截图)。
I ran into this error also, and my issue turned out to be a misconfiguration of Eclipse. In Eclipse, I had configured (in Windows > Preferences) the "PHP Executables", but I had not configured the PHP "Debug" settings. In PHP "Debug", I had to set "PHP Debugger" to XDebug (mine was set to "Zend Debugger"). I also had to set the "PHP Executable" and toggle the "Enable CLI Debug". I wrote a BLOG post about this (with some screen shots).
这篇关于php eclipse调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!