If you are doing web development, don't forget to restart your webserver to reload the settings. There are also a variety of other options, like the port (by default 9000), please see the Xdebug documentation on remote debugging for more information. I recommend remote_autostart because it "just works". There are other ways to tell Xdebug to connect to a remote debugger than remote_autostart, like cookies, query parameters or browser extensions. The path of your php.ini is shown in your phpinfo() output under "Loaded Configuration File".Įnable remote debugging in your php.ini: dll on Windows) that needs to be installed on your server.Ĭonfigure PHP to use Xdebug by adding zend_extension=path/to/xdebug to your php.ini. This extension is a debug adapter between VS Code and Xdebug by Derick Rethan. Opens new Output window that shows the output of debugged scripts.Install the extension: Press F1, type ext install php-debug. Click on a URL in the Output window to open the URL in a browser window. This Output window is named PHP Requested Urls and it shows currently processed URLs. Opens new Output window during debugging. (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.) Sets the visibility of array items during Watch evaluation. Sets the visibility of nested structures (such as nested arrays, objects in objects, etc.) Watches and ballon evaluation destabilizes XDebug. Watches and Balloon Evaluation Watches and balloon evaluation is disabled by default. This keeps your screen focused in the IDE instead of switching to a browser window when you launch a debugging session. 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 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. Session ID Arbitrary name of the debugging session. You only inform NetBeans IDE of the port that XDebug uses. You cannot affect the port that XDebug uses in this dialog. The port number in this dialog must be the same as the debugger port you set in php.ini. *Debugger port *This is the port that XDebug uses, as set in php.ini.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |