在Eclipse中使用phpcli运行xdebug时会忽略断点。第一个断点有效,但我手动设置的其他断点不起作用。
我看了xdebug.remote_log发现了以下内容:
< - breakpoint_set -i 671 -t line -f file:///home/jlam/code/makhai/public/index.php -n 6 - >
&lt; - breakpoint_set -i 672 -t line -f file:///org.eclipse.dltk.core.environment.localEnvironment/:/ home / jlam / lib / ZF2 / Zend / ModuleManager / ModuleManager .php -n 170 - &GT; &lt; response xmlns =“urn:debugger_protocol_v1”xmlns:xdebug =“http://xdebug.org/dbgp/xdebug”command =“breakpoint_set”transaction_id =“672”id =“235390002”&gt;&lt; / response&gt; < / p>
...这使我相信我可以解决它,如果:
感谢您的贡献。
答案 0 :(得分:-1)
试试这个。
直接打开文件(File-&gt; Open File-&gt;)并设置断点。