Postman Xdebug Phpstorm

Posted : admin On 1/29/2022

Before Docker, Xdebug was relatively straightforward to configure on a platform, in that it was a new set of the php.ini parameters – you’d either just edit the existing php.ini, or load in a custom ini or override. Now we’re running PHP and fpm in a container, so we need to inject the configuration in with docker-compose. XDEBUGCONFIG - This variable allows to define some Xdebug configurations. The 'remote host' is the private ip of your host machine (the one your PHPStorm is running). The 'remoteport' is the port that PHPStorm will be listening for incoming Xdebug connections. These two settings allow PHPStorm and Xdebug to communicate. PhpStorm will automatically add the XDEBUGSESSION cookie to the request, execute it, and stop at the specified breakpoint. When a request is executed, PhpStorm automatically creates a dedicated temporary HTTP Request run/debug configuration for it. You can save it as a permanent run/debug configuration if necessary.

Phpstorm xdebug sshXdebug

In order to start debugging, you first need to activate the debugger engine on the server. To do this, you need to set a special GET/POST or COOKIE parameter (see the Xdebug and Zend Debugger official documentation for details). While you can do it manually, it is more convenient to use a browser extension, which lets you enable the debugger with a single click.

The following table lists the available debugging extensions.

ChromeFirefoxInternet ExplorerSafariOpera
Xdebug

Xdebug Helper or Xdebug-ext

Zend Debugger

zDebug or Zend Debugger Toolbar

Z-Ray for Zend Server version 7 or later. PhpStorm bookmarklets generator otherwise.

  1. Install the Xdebug helper extension for Chrome from the Chrome Web Store.

  2. In PhpStorm, enable listening to incoming debug connections by either clicking on the toolbar or selecting Run Start Listening for PHP Debug Connections

  3. Initiate connection from the browser side. Click the Xdebug Helper icon on the browser toolbar to initiate a debugging, profiling or tracing session:

  4. As a rule, no further configuration is required. If necessary, you can explore additional settings by right-clicking the Xdebug Helper icon and choosing Options from the context menu.

Php Docker Xdebug Phpstorm

Postman xdebug phpstorm activation

Postman Xdebug Phpstorm Download

  1. Install Zend Debugger Toolbar.

  2. In PhpStorm, enable listening to incoming debug connections by either clicking on the toolbar or selecting Run Start Listening for PHP Debug Connections

  3. In the browser, click the Zend Debugger icon on the toolbar and select Settings. Make sure that Autodetect is selected, and the Broadcasting port value matches the value set for Settings broadcasting port on the Debug page in PhpStorm.

  4. Initiate connection from the browser side. Click the Zend Debugger icon on the browser toolbar to initiate a debugging or profiling session: