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..
Hello again, yesterday I tried to find the solution for the error that occurred. When I follow the
Hello again,
yesterday I tried to find the solution for the error that occurred. When I follow the tutorial to try and implement the personalized product page, I get the error that Class ‘PersonalizedProductDependecyProvider’ is not found.
To resolve this problem I tried to install and configure xdebug for my docker setup. But I can’t get the connection to work. I tried the different troubleshooting options. When I execute this command nc -zv ${SPRYKER_XDEBUG_HOST_IP} 9000, I get an error that the connection is refused. I would be grateful for any advice about how to proceed from here
Comments
-
Hello David,
What platform are you working on?
0 -
The docker container is on a unix system, I’m working on mac os where my php storm is running
0 -
I’ve used xdebug a bunch of times on my Mac.
What is the value of SPRYKER_XDEBUG_HOST_IP?
0 -
The error message is: nc: connect to 10.101.65.96 port 9000 (tcp) failed: Connection refused
0 -
actually it should be ‘host.docker.internal’
0 -
But it seems our script to determinate the IP is wrong.
Anyway we have a ticket to refactor xdebug in our docker SDK.0 -
Try to change
docker/deployment/default/deploy
withexport SPRYKER_XDEBUG_HOST_IP=host.docker.internal
and thendocker/sdk restart -x
0 -
Ok after aplying the change im now getting this error nc: getaddrinfo: Name does not resolve
0 -
nc -zv host.docker.internal 9000
works?0 -
Do you use docker-machine?
0 -
No that line leads to the same error. It is a virtual server machine I’m connecting to, to do my development
0 -
So it seems linux inside. The problem you need to solve - to determinate IP of your host and pass via SPRYKER_XDEBUG_HOST_IP.
But how do you map your xdebug port to your dev machine?
0 -
Yes the server is a linux system. I followed this guide https://documentation.spryker.com/installation/spryker_in_docker/debugging-setup-in-docker-201907.htm to establish the connection between php storm and the server. By manually inserting my host ip in SPRYKER_XDEBUG_HOST_IP the connection is now established. But when debugging im still getting errors, that some remote files are not mapped to files in the project
0 -
Also for some reason the xdebug model is not shown when I execute php -m
0 -
you need to run
docker/sdk cli -x
to debug console commands0 -
Ok now the module shows up. I’ve configured the mapping for the project files but not for the include paths, in PHPStorm. The debug doesn’t stop at any given breakpoint. I’m guessing it’s because a mapping is missing, but I’m unsure how to configure the mappings for the include paths. Thanks for your help so far
0 -
Glad to help
0 -
Can you point me to any information about how the path mappings in PHPStorm (Languages & Frameworks > PHP > Servers) are supposed to be configured? Especially the mappings for the include paths
0 -
-
I am not sure about
include
path. But the mapping is simple.0 -
Yes I followed that guide and set up the mapping to /data. But I’m still getting the error
Debug session was finished without being paused It may be caused by path mappings misconfiguration or not synchronized local and remote projects.
And the execution is not stopped at the breakpoint I set
0 -
Just as experiment. Try
xdebug_break()
in any of entrypoint.0 -
I think I fixed it. I synced the project files again and now it stops at the given breakpoints. Thanks for your patience
0 -
What do you use for syncing? docker-sync?
0 -
I synced the files via PHPStorms deployment configuration
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random