简体   繁体   English

使用Zend Studio / Eclipse进行调试

[英]Debugging with Zend Studio / Eclipse

Is it possible to debug PHP scripts so that it keeps running until an expression is true? 是否可以调试PHP脚本,使其一直运行直到表达式为真?

For example, I want to know when $a becomes a certain value. 例如,我想知道$ a何时变为某个值。 I don't want to keep pressing step into and wait until the variable $a changes the value to it. 我不想一直踩到并等待直到变量$ a将值更改为它。

The solution is to set a breakpoint, right click on it and set a condition for it. 解决方案是设置一个断点,右键单击它并为其设置条件。

However, there are no global breakpoints, you must specify a location for every breakpoint you put. 但是,没有全局断点,必须为放置的每个断点指定一个位置。 So, if you want to know where a value changes, you can't set any global conditions as they would be too CPU consuming. 因此,如果您想知道值在哪里更改,则无法设置任何全局条件,因为它们会占用大量CPU。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM