Zend Studio 调试器 - 单步调试可能吗?

发布于 2024-10-15 23:07:14 字数 250 浏览 5 评论 0原文

最近我在 PHP 中使用了很多实现 ArrayAccess 和 Iterator 的类。它的功能很棒,但在调试时有点痛苦。具体来说,由于我手动为我的类定义这些数组访问和迭代方法,因此当单步执行 PHP 中的代码时,一遍又一遍地循环使用这些接口方法来处理日常事务会有点痛苦。

我的问题:是否有文档块注释或其他一些符号可以放在我的方法上,以便 Zend Studio 调试器自动单步跳过?我意识到我可以手动跨过,但在“步入”和“跨过”之间来回切换会很烦人。有什么解决方案吗?

Lately I've been using a lot of classes that implement ArrayAccess and Iterator in PHP. Its fantastic functionality, but a bit of a pain when I'm debugging. Specifically, since I'm manually defining these array access and iteration methods for my classes, when stepping through code in PHP its a bit of pain to be cycling through these interface methods over and over for routine things.

My question: is there a docblock comment or some other signifier that I can put on my methods so that the Zend Studio debugger will automatically Step Over? I realize that I can manually step over but it gets tiresome switching back and forth between Step Into and Step Over. Any solutions out there?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

紫瑟鸿黎 2024-10-22 23:07:14

您可以在代码中添加任何内容来影响 Zend 调试器。

有关各种控制选项,请参见

如果您想排除文件或资源被单步执行,请尝试使用步进过滤器

There is nothing you can put in your code to influence the Zend Debugger afaik.

For the various control options see

If you want to exclude files or resources from being stepped into, try a Step Filter

浪推晚风 2024-10-22 23:07:14

如果没有自定义 Zend Debugger,这是不可能的。因此,我相信对于您的问题存在其他解决方案。尝试创建一个像 if 一样的块,测试控制器变量和制动内部。

if($test_an_controller_variable) { // Like a $i of an iteration, and you don't need wait ane iterations until that.
    $b; // set a breakpoint to here.
}

Its not possible without customize Zend Debugger. Therefore, I believe that exists other solutions for your problem. Try to create a block like a if, test an controller variable and brake inner.

if($test_an_controller_variable) { // Like a $i of an iteration, and you don't need wait ane iterations until that.
    $b; // set a breakpoint to here.
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文