J
J
john782022-03-24 11:56:14
xdebug
john78, 2022-03-24 11:56:14

Why doesn't Xdebug work in PhpStorm when I put the site up on Docksal?

You need Xdebug to keep track of incoming data, where it goes, etc.
Since I raise the Drupal site using docksal, I configured it according to the instructions https://docs.docksal.io/tools/xdebug/#phpstorm

1. I wrote the command:
fin config set --env=local XDEBUG_ENABLED=1

And in the file docksal-local.env changed to:
XDEBUG_ENABLED="1"

2. I wrote the command:
fin project start

3 Checked xdebug:
fin exec php-v | grep -i xdebug

And gave:

with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans


4. Put a breakpoint on one line in the index.php file

5. Pressed the Start Listening for PHP Debug Connections button 6. Went
623c322859b32206003868.png

to the site page in the browser, refreshed it and returned to PhpStorm

But nothing happened. What do I need to do to make Xdebug work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question