我已经设法从IDE本身启动了php-cli脚本调试会话,但我需要从shell /命令行启动调试会话。这些都是相当复杂的维护PHP脚本,需要大量的输入参数,因此从Netbeans中输入参数有点麻烦。
我以前用Zend studio:https://zend18.zendesk.com/hc/en-us/articles/203838096-Debugging-PHP-CLI-Scripts做过,但现在我需要让它和Netbeans一起工作。
提前谢谢。
发布于 2010-06-01 01:01:10
将xdebug.remote_autostart=On
添加到php.ini文件或将-dxdebug.remote_autostart=On
作为参数添加到PHP二进制调用(php -d... script.php
)。
发布于 2017-03-13 01:18:03
如果你不想为你的集成开发环境配置xDebug (我讨厌配置),你可以使用Dephpugger项目。
https://github.com/tacnoman/dephpugger
您可以在终端中运行调试器,比如Python的ipdb和Ruby的byebug。
https://stackoverflow.com/questions/2944880
复制相似问题