Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以调试 PHP 脚本以使其一直运行直到表达式为真?
例如,我想知道 $a 何时变为某个值。我不想一直按下 step into 并等到变量 $a 将值更改为它。
解决方法是设置一个断点,右键单击它并为其设置条件。
但是,没有全局断点,您必须为放置的每个断点指定一个位置。因此,如果您想知道值在哪里发生变化,则不能设置任何全局条件,因为它们会占用过多的 CPU。