Options Window: PHP: Debugging

In this tab you can set the following options.

Element Description

Debugger port

This is the port that XDebug uses, as set in php.ini. By default it is port 9000. The port number in this dialog must be the same as the debugger port you set in php.ini. You cannot affect the port that XDebug uses in this dialog. You only inform NetBeans IDE of the port that XDebug uses.

Session ID

Arbitrary name of the debugging session. By default it is netbeans-xdebug. This value is important to note in cases where you have to set the xdebug.idekey property in php.ini, such as some remote debugging scenarios.

Stop at First Line

Tick this option for the debugger session to stop at the first line of code instead of at the first breakpoint. This keeps your screen focused in the IDE instead of switching to a browser window when you launch a debugging session.

Watches and Balloon Evaluation

Due to a number of bugs, watches and balloon evaluation is disabled by default.

    Maximum Depth of Structures

Sets the visibility of nested structures (such as nested arrays, objects in objects, etc.)

    Maximum Number of Children

Sets the visibility of array items during Watch evaluation. (If you set Maximum Number of Children to 1 you will see only the first item of an array even if the array has more then one item.)

Show Requested URLs

Opens new Output window during debugging. This Output window is named PHP Requested Urls and it shows currently processed URLs. The URLs are clickable. Click on a URL in the Output window to open the URL in a browser window.

Show Debugger Console

Opens new Output window that shows the output of debugged scripts.

Set output_buffering = Off in your php.ini file. Otherwise there will be a delay in seeing script output in the Output window.



Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.