

With xdebug.client_host you can select the IP or hostname In more complex set-ups you need to configure the host and port that XdebugĬonnects to yourself. Way of set-up if you are sharing a development server among you and your team HTTP headers to find out the IP address of the host that initiated theĭebugging request, and use that IP address to connect to. Xdebug.discover_client_host setting to 1. Your browser on the same host as your IDE, then you set the If PHP/Xdebug run on a different machine in the same sub-net, and you run To, as it is Xdebug that initiates the communication to the IDE, and not If PHP/Xdebug run on a different machine, virtual host, or in a DockerĬontainer, you need to tell Xdebug where to make the debugging connection

Same host, this is all you need to configure on the PHP and Xdebug side. In set-ups where PHP/Xdebug and your IDE all run on the Please refer to Configure PHP in the documentation to (An overview of third party clients is available further downĭistribution specific PHP ini file, change (or set) the xdebug.mode setting toĭebug. There isĪlso a simple Command Line Debug Client available as part of the Xdebug project,īut it is strongly recommended that you use an IDE for debugging. This protocol is supported by nearly every PHP IDE (including Visual StudioĬode and PhpStorm), and also by text-based editors. Therefore you also need to configure an IDE that knows how to talk to Xdebug Xdebug interacts with IDEs to provide step debugging functionality, and Xdebug's step debugger allows you to interactively walk through your code toĭebug control flow and examine data structures.
