markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.53k stars 994 forks source link

Xdebug not stopping at the breakpoints ( Linux ) #1222

Open postadelmaga opened 5 days ago

postadelmaga commented 5 days ago

I followed all the instruction on the video tutorial:

  1. Enabled xdebug in the container installation bin/xdebug enable
  2. Installed the Xdebug helper ( and set the key to PHPSTORM)
  3. Configured Phpstorm, added the debug configuration and started it ( Waiting for incoming connection with ide key 'PHPSTORM' is correctly shown in the ide)

The CLI script debug works fine but the index.php doesn't stop on any breakpoints ( I used the $bootstrap= ... line as showed in the instruction )

I tried to add manually the parameter to the url ?XDEBUG_SESSION=PHPSTORM but nothing :(

What else can I try ?

Hawksama commented 4 days ago

Have you created the server and configured the absolute of the src folder to point to "/var/www/html/"?

If you're using Chrome, you can install Xdebug Chrome extension and enable the debugging though the extension.