New Features in PHP Debugger

Hi all, we are very happy today, because we can introduce you new features which were implemented into the PHP Debugger module. From now a debugging of PHP projects with NetBeans is much more comfortable. 

So enough words and let us introduce them!

The first:
Debugging has it's own tab in Tools -> Options -> PHP. So everything what was somehow connected with a debugging and was in a General tab is here now.

The second:
In the Debugging tab, there are two new text inputs which allow you to directly set XDebug settings. Now you can set:

  • Maximum Depth of Structures - which sets a visibility of nested structures (like nested arrays, objects in objects, etc.) and
  • Maximum Number of Children - which sets a visibility of e.g. array items during Watch evaluating (if you set it to 1 you will see only the first array item even though it has more then one item).

The third:
There is just another option which you can enable or disable in the new Debugging window. It's called Show Requested URLs. When it's enabled new Output Window occurs during debugging and currently processed URLs are showed there. They are clickable so after clicking on it a browser window is opened with the clicked URL.

The fourth:
And the last new option in the Debugging tab allows you to show or hide a new Output Window called PHP Debugger Console. If you want to see an output of your debugged scripts, just enable this option and you will see it in this new Output Window. But don't forget to set output_buffering = Off in your php.ini file to see it immediately.

The fifth:
It's the icing on the cake:) When you have an array in the Variables window (as a simple variable or a watch) you can see the number of array items and you don't have to expand a whole array.

And that's all for today. There are many other smaller improvements and fixes so please test it and if you find something strange or you have an idea for a great new enhancement, please report it into our BugZilla (component php, subcomponent Debugger). Thanks.


Please excuse the impertinence but... If you are working on this area, it'd be great if you could have a look at bug #189783 ( ) which is apparently assigned to you.

Thank you! :^)

(I can't be only one who uses UNC paths...)

Posted by Álvaro G. Vicario on August 18, 2011 at 12:44 PM CEST #

In what version of the IDE is this feature available?

Posted by William Rouse on August 19, 2011 at 12:26 AM CEST #

William: It's available in nightly build of NB 7.1 (

Alvaro: I understand that it's annoying bug, but I did what I could and the rest of bugs have to wait for another release. Sorry for any inconvenience.

Posted by Ondrej Brejla on August 19, 2011 at 03:42 AM CEST #

Thank you for your hard work! This debugging output feature will be very helpful!

Posted by guest on August 23, 2011 at 01:54 PM CEST #

Thanks for keeping netbeans' PHP updated! Your work is much appreciated.

P.S Random user request: update of Symfony support to 1+2, addition of Cake support. :)

Posted by Matt on August 24, 2011 at 12:44 PM CEST #

Awesome! Thanks Ondrej - very nice! (for both updates and the blog post)

Posted by Camden on September 07, 2011 at 02:30 PM CEST #

Will you add these features to NetBeans debugger?
* conditional breakpoints
* changing variable value in watch window

Posted by Milos on October 06, 2011 at 06:47 AM CEST #

I would like to implement conditional breakpoints, but I have to evaluate XDebug support for this feature.

I'm not really sure what you mean by changing variable value in watch window...can you descibe it more deeply? And please, can you file a new Enhancement issue into our bugzilla [1], so we can track it? Thanks a lot!


Posted by Ondrej Brejla on October 06, 2011 at 06:59 AM CEST #

A year or more ago there were ongoing crash problems between netbeans and XDebug which resulted in an added IDE option 'Watches and Ballon Evaluation'to enable these (default OFF).

Is it safe to assume these issues are a thing of the past? I notice the option is still there!

Posted by guest on January 09, 2012 at 05:30 AM CET #

Also looking forward to symfony 1+2 support.
Thanks for all the hard work.
- Michael

Posted by guest on January 14, 2012 at 01:09 PM CET #

The variables tab layout used during debugging is NOT preserved.

Thanks in advance.

Posted by KG on January 22, 2012 at 07:24 PM CET #

Thanks for the continual improvements, keep it up.

Bug report: The debugger variables view columns order and widths are never preserved which is annoying.

Thanks in advance.


Posted by Kenny on January 23, 2012 at 04:17 PM CET #

I really miss Conditional breakpoint !!!

I can read here( that eclipse + xdebug is supporting this feature ( 2008 ) so I think no problem on xdebug side ...
Please this is a really key feature for a debuger today

Posted by guest on February 27, 2012 at 11:05 AM CET #

Hi, there is an enhancement in our bugzilla for this issue:

Posted by Ondrej Brejla on February 27, 2012 at 11:12 AM CET #

how much time you will need guys to implement it ? 7.2. ?
I don't think this require many lines of code ( maybe i'm wrong ... )
it is one of the bigger (probabbly the biggest) deficiencies of netbeans debugger

Posted by guest on February 27, 2012 at 03:08 PM CET #


Since version 7.1 there is a different (an annoying) behaviour when debugging a php application.

In previous versions, when you step into a statement that takes the flow into another file, only one extra tab would open no matter how many times you do that. Now, one tab is open for every single file that you step into, so you end up with a lot of tabs open in the IDE.

Is this a bug or a feature?

Posted by guest on March 06, 2012 at 05:31 PM CET #

I have two machines with same operating system (Kubuntu 13.04) and Netbeans versions (7.3). In the first computer when I debug (breakpoint) it does not open new tabs in the IDE. In the other computer when I go to a breakpoint the IDE opens a new tab, showing the file deployed in the web server. The point is that sometimes I forget this behaviour and edit the web server file... losing this work when I save the original file.

Posted by Miguel Gil on May 04, 2013 at 08:44 AM CEST #

"Step into" and related debugging commands are disabled on my installation. How can I enable them?

Posted by guest on July 25, 2013 at 07:45 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed

This blogs is written by NetBeans developers who contribute to the PHP support mainly.


« July 2016