New Features in PHP Debugger
By Ondrej Brejla on Aug 18, 2011
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!
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.
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).
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.
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.
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.