本文介绍了PHP Netbeans:每个include()或require()都停止xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现使用netbeans IDE中集成的xdebug进行PHP调试,我觉得很棒!我怎么没有生活? :)

I've just discovered PHP debugging using xdebug integrated in netbeans IDE and I think it's great! how did I live without it? :)

但有一个问题:如果我在代码中设置了一个断点,我必须先按继续(F5)几次,然后再进入断点因为脚本停在每个include()和require()函数。

But there's one problem: if I set a breakpoint deep in my code, I have to press "Continue" (F5) several times before I get to a breakpoint, because script stops at every include() and require() functions.

我的包含如下:

<?php
    require_once('include/config.inc.php');
    require_once('include/forms.inc.php');
?>

这是一个错误,还是我可以禁用此行为,所以我不必按继续几次?

Is it a bug, or I can disable this behavior, so my I don't have to press "Continue" several times?

我在ubuntu 9.10上使用NetBeans 6.9.1

I'm using NetBeans 6.9.1 on ubuntu 9.10

推荐答案

转到配置> PHP>常规 取消选中 停止一线

go to Configuration > PHP > General and uncheck "Stop at First Line"

批准更改并再次尝试

每个包含 / require 是一个新的First Line;)

every include/require is a new "First Line" ;)

这篇关于PHP Netbeans:每个include()或require()都停止xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-19 05:22
查看更多