PhpStorm
 
2024.3
Get PhpStorm

Multiuser debugging via Xdebug proxies

Last modified: 11 October 2024

When you start a debugging session, the Xdebug extension connects to the IP address PhpStorm is running at, specified as the xdebug.remote_host (for Xdebug 2) or xdebug.client_host (for Xdebug 3) value. PhpStorm accepts this connection and can communicate with Xdebug over it. Xdebug only supports connecting to a single IP address, and does not automatically connect back to the IP address that runs the browser because of security reasons. To debug PHP applications in multiuser environments, Xdebug offers a so-called DBGp proxy.

When a proxy is used, the PHP Xdebug extension no longer connects to PhpStorm directly, but instead connects to the DBGp proxy server. All developers in the team, in turn, then connect to that proxy. Each developer has a separate debugging session running over this proxy, which makes it possible to do multi-user debugging of the same code on the same server.

Ps Xdebug Schema Proxy