PHP Netbeans: xdebug stops on every include() or require()

孤者浪人 提交于 2019-12-08 15:22:44

问题


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

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.

My includes look like that:

<?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?

I'm using NetBeans 6.9.1 on ubuntu 9.10


回答1:


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

Approve the changes and try again

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




回答2:


In case you are using Netbeans 8.1 version, here is a slight change in the location where you can find this option. Go to Tools > Options > PHP >Debugging tab and uncheck "Stop at First Line"



来源:https://stackoverflow.com/questions/3913626/php-netbeans-xdebug-stops-on-every-include-or-require

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!