Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 982
Silver Light Avatar asked Oct 12 '10 10:10

Silver Light


People also ask

What is the use of xdebug?

Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. A way to step through your code in your IDE or editor while the script is executing. Writes every function call, with arguments and invocation location to disk.


1 Answers

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" ;)

like image 159
teemitzitrone Avatar answered Sep 25 '22 23:09

teemitzitrone