Ask Your Question
3

Why is xdebug not starting in dunglas/symfony-docker?

asked 2021-11-22 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-01-23 19:00:00 +0000

nofretete gravatar image

There could be multiple reasons why xdebug is not starting in dunglas/symfony-docker:

  1. Xdebug is not enabled: Make sure that xdebug is enabled in the php.ini file. You can check if xdebug is enabled by running the command php -m | grep xdebug.

  2. Incorrect configuration: Check if the configuration in the php.ini file is correct. Make sure that the xdebug.remoteenable and xdebug.remoteautostart options are set to true.

  3. Port conflict: Check if the port used by xdebug is already in use. You can change the port number in the php.ini file.

  4. Firewall blocking the connection: Check if the firewall is blocking the connection between the PHP container and the xdebug client.

  5. Debug client is not correctly configured: Make sure that the debug client is correctly configured to listen for xdebug connections. The most common client is Visual Studio Code's PHP Debug extension.

If none of these solutions work, you may need to seek further assistance or consider a different Docker image.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-22 11:00:00 +0000

Seen: 15 times

Last updated: Jan 23 '22