Xdebug not catch queries from server in PhpStorm

If I post a query from Node to PHP app (browser -> nginx -> node -> php (localhost:9000)). PhpStorm not catch it.

If request is posted from a browser (with Xdebug helper extension) then PhpStorm will catch it.

Xdebug version is 3.0.2. My xdebug php.ini section (fpm | CLI | Apache 2 | CGI - all the same):

[xdebug]
zend_extension="/usr/lib/php/20190902/xdebug.so"
xdebug.start_with_request=yes
xdebug.idekey=PHPSTORM
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003

php -v:

PHP 7.4.15 (cli) (built: Feb 19 2021 15:42:28) ( NTS )
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans
    with Zend OPcache v7.4.15, Copyright (c), by Zend Technologies

phpinfo:

Step Debugger: enabled
xdebug.client_host: 127.0.0.1
xdebug.idekey: PHPSTORM
xdebug.start_with_request: yes

php -i:

xdebug.client_host => 127.0.0.1 => 127.0.0.1
xdebug.client_port => 9003 => 9003
xdebug.idekey => PHPSTORM => PHPSTORM
xdebug.mode => debug => debug

PhpStorm settings:

  • PHP -> Debug -> xdebug section:
  • Debug port: 9003
  • All checkmarks checked
  • PHP -> Debug -> DBGP proxy:
  • IDE key: PHPSTORM
  • Host: 127.0.0.1
  • Port: 9003

PhpStorm debug config:

  • remote debug
  • name: 127.0.0.1
  • filter debug connection - try with/without, it not helps
  • server: 127.0.0.1 (name and host)
  • port 80, path mapping settings correct (it works from browser)
  • IDE key (session id): PHPSTORM

How can I catch request from Node to PHP in PhpStorm?

Update

Add xdebug.log. From browser xdebug write it, from browser->node->php - it is empty



Read more here: https://stackoverflow.com/questions/66344132/xdebug-not-catch-queries-from-server-in-phpstorm

Content Attribution

This content was originally published by tannerman at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: