Xdebug not working

David Wischner
David Wischner Software Engineer Posts: 2 🧑🏻‍🚀 - Cadet

Hi everyone,

I'm experiencing an issue with Xdebug on my system. I'm unable to make it running.

I configured everything following the steps described here:
https://docs.spryker.com/docs/dg/dev/set-up-spryker-locally/configure-after-installing/configure-debugging/configure-debugging.html

Since it was not working out of the box, I followed this advice:
https://docs.spryker.com/docs/dg/dev/troubleshooting/troubleshooting-docker-issues/troubleshooting-debugging-in-docker/xdebug-does-not-work.html#description
and executed
docker/sdk cli -x
followed by
nc -zv ${SPRYKER_XDEBUG_HOST_IP} 9000
(when running the given command at once "docker/sdk cli -x bash -c 'nc -zv ${SPRYKER_XDEBUG_HOST_IP} 9000'" I only got a usage hint from nc).
After a while I got this response:
nc: connect to 192.168.43.24 port 9000 (tcp) failed: Operation timed out
Do you have any hints for me how to proceed?

Thanks in advance

David

Tagged:

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 ⚖️ - Guardians (admin)

    Heyhey @David Wischner ,

    to help you out here, can you please give us more information of your setup:
    OS, docker desktop or sth else? latest docker-sdk version? etc

    All the best,

    Florian

  • David Wischner
    David Wischner Software Engineer Posts: 2 🧑🏻‍🚀 - Cadet

    Hey @fsmeier, thanks for the quick response.

    OS: Ubuntu 24.04 LTS
    Docker version 27.0.3, build 7d4bcd8 (if I remember correctly I did not use docker-desktop for setting things up but not 100% certain here)
    latest docker/sdk (1.61.0)

    I tried setting up Xdebug for a customer project as well as a plain b2b-demoshop.