docker-magento: Debugger is not triggering on breakpoints after setting up
Hello! First of all, I want to thank you for this great docker configuration. I find it very handy and switched most of the projects I’m working on to it. However, I can’t set up my debugger using this instruction: https://github.com/markshust/docker-magento#xdebug--phpstorm
Description Can’t set up my debugger
Steps To Reproduce Go through the steps of this instruction https://github.com/markshust/docker-magento#xdebug--phpstorm
Expected Result PHPStorm will stop on the breakpoints
Actual Result
PHPStorm is not stopping, I can see waiting for incoming connections with ide key 'PHPSHORM' text
===
bin/cli php -v output:
PHP 7.4.8 (cli) (built: Jul 22 2020 09:39:30) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.8, Copyright (c), by Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.4.1, Copyright (c) 2002-2020, by ionCube Ltd.
with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans
with blackfire v1.36.0~linux-x64-non_zts74, https://blackfire.io, by Blackfire
PHP config:

PHP server:

Debug configuration:

Xdebug helper extension options:

Debug and DBGp Proxy ports are set to 9001 inside PHPStorm settings
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 17 (9 by maintainers)
Double check your PhpStorm settings…
The port must be the same configured in php.ini

Check the server address
as per the image in my previous message
Remember to enable xdebug bin/xdebug enable and check if it’s enabled with
bin/cli php -vAfter adding this php ide config and chaning server name the xdebug started. Thanks for help. However this should work out of the box + steps from github or documentation should be updated.
@vy-shmal On Linux don’t forget about uncomment these two lines in docker-compose.dev.yml
This should be fully resolved in 41.0.2 https://github.com/markshust/docker-magento/blob/master/CHANGELOG.md#4102---2021-12-09
There is a new PHP image that should also expose port 9003, which may resolve some issues.
Yeah, still a problem for me on Ubuntu 20.04.1 and Docker version 20.10.2, build 2291f61.
The suggested changes above do not resolve this issue for me either. PhpStorm sits in a constant state of waiting for incoming connections.
Try adding
PHP_IDE_CONFIG: "serverName=ShustDocker"in docker-compose.dev.yml.