What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi there Dear Team, I am writing to report an issue with configuring Xdebug in my

U045KD44L7L
U045KD44L7L Posts: 55 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi there
Dear Team,
I am writing to report an issue with configuring Xdebug in my b2c-demo-shop. I have followed the steps below:

  1. Cloned the b2c-demo-shop using the following URL: git clone
    https://github.com/spryker-shop/b2c-demo-shop.git -b 202212.0 --single-branch ./b2c-demo-shop

  2. Navigated to the cloned folder: cd b2c-demo-shop

  3. Cloned the SDK repository: git clone https://github.com/spryker/docker-sdk.git --single-branch docker

  4. Added my user to the docker group: sudo usermod -aG docker $ashu

  5. Bootstrapped local docker setup: docker/sdk bootstrap deploy.dev.yml

  6. Opened the host file using the following steps and pasted the code we got in Step 4:

  • Opened the Start menu.
  • In the search field, entered Notepad.
  • Right-clicked Notepad and selected Run as administrator.
  • In the User Account Control window, selected Yes to confirm the action.
  • In the upper navigation panel, selected File > Open.
  • Put the following path into the address line: C:\Windows\System32\drivers\etc.
  • In the File name line, entered hosts and selected Open. The hosts file opened in the drop-down.

  • Open the host file and update it with the following data:
    127.0.0.1 backend-api.at.spryker.local
    127.0.0.1 backend-api.de.spryker.local
    127.0.0.1 backend-api.us.spryker.local
    127.0.0.1 backend-gateway.at.spryker.local
    127.0.0.1 backend-gateway.de.spryker.local
    127.0.0.1 backend-gateway.us.spryker.local
    127.0.0.1 backoffice.at.spryker.local
    127.0.0.1 backoffice.de.spryker.local
    127.0.0.1 backoffice.us.spryker.local
    127.0.0.1 glue.at.spryker.local
    127.0.0.1 glue.de.spryker.local
    127.0.0.1 glue.us.spryker.local
    127.0.0.1 mail.spryker.local
    127.0.0.1 queue.spryker.local
    127.0.0.1 redis-commander.spryker.local
    127.0.0.1 scheduler.spryker.local
    127.0.0.1 spryker.local
    127.0.0.1 swagger.spryker.local
    127.0.0.1 yves.at.spryker.local
    127.0.0.1 yves.de.spryker.local
    127.0.0.1 yves.us.spryker.local

Added by Docker Desktop

192.168.1.7 host.docker.internal
192.168.1.7 gateway.docker.internal

To allow the same kube context to work on the host and the container:

127.0.0.1 kubernetes.docker.internal

End of section

  • Built and started the instance using the following command: docker/sdk up

Task 2
Now, I am trying to configure Xdebug using the following steps:

  1. Run the following command anywhere in the folder with "sudo": sudo apt-get install php-xdebug

  2. Went to the following location: cd docker/context/php/debug/etc/php/debug.conf.d

  3. Edited the Xdebug Configuration file using vim command: sudo vim xdebug.ini

  4. Pressed the "i" button to insert(write) and pasted the following line in the "xdebug.ini" file:

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=on

  1. Pressed "Esc" then ":wq!" Enter

  2. Verified that Xdebug is installed and configured by running the following command: php -v

  3. the last command i used docker/sdk up
    and it gives error :

<3>WSL (10561) ERROR: UtilAcceptVsock:248: accept4 failed 110
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``

Kindly assist me with resolving this issue.

Thank you in advance for your help.

Comments