使用Eclipse调试PHP的最佳方法是什么?具体地说,我正在尝试解决Drupal6安装中的一些问题。
我喜欢Eclipse针对Java的调试。有没有办法对PHP做同样的事情?
发布于 2016-03-23 20:23:22
您可以将此代码添加到php.in文件中以启用调试器。
[XDebug]
zend_extension = "D:\opt\lampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_mode=req发布于 2018-07-18 21:29:26
如果您出于某种原因不使用PDT,那么您可以使用CodeMix作为在Eclipse中调试PHP的轻量级替代方案。当然,您仍然需要安装XDebug -有关更多详细信息,请参阅this doc。
https://stackoverflow.com/questions/1582897
复制相似问题