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..
Hey guys, Can any one help me with how to setup `xdebug` on B2C demo project. As I understand, we
Hey guys, Can any one help me with how to setup xdebug
on B2C demo project.
As I understand, we start the xdebug with ./docker/sdk start -x
command .
However when selecting Image for container in PHPStorm, there are a lots of image, so which one do we select, Any Idea?
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
Heyhey, does this help? https://docs.spryker.com/docs/scos/dev/the-docker-sdk/202108.0/configuring-debugging-in-docker.html
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
did you do a docker/sdk bootstrap deploy.dev.yml ?
0 -
Hi Florian,
Yup I used
docker/sdk bootstrap deploy.dev.yml
And thanks, I thought I had to setup CLI interpreters to properly link everything in PHP Storm with xdebug. Well thats how I used to do before, but by just adding servers it seems like now I am close to running xdebug.
At least now it breaks in the first line but I have this errors
Server with name spryker does not exists
. I will check this further0 -
The name of the server (2. screenshot) is wrong and should be "spryker" instead.
0 -
oh boy π it works perfectly now . Thanks @UL6DGRULR π Appreciate the help
0 -
Fyi:
For me, starting a xdebug session using cookies works without running the containers explicitly in debug mode (-x param). But for whatever reason, starting a debug session using url/post params (?XDEBUG_SESSION_START=β¦) wonβt work without debug mode β¦0 -
@UPWG9AYH2 Seems to work for me even from postman. I used this . may be check your value of
XDEBUG_SESSION_START=phpstorm
<http://glue.de.spryker.local/catalog-search?q=a&XDEBUG_SESSION_START=phpstorm>
0 -
ran docker/sdk up with or without -x param?
0 -
I had run with debug mode. I think if we want to use xdebug, we always need to run with
-x
param to set xdebug on, no? π€.0 -
No, that was exactly the point π for me it was never needed to run containers in xdebug mode when starting a debug session from browser (using xdebug helper) β¦ but it would not work starting it via url/post params as far as the xdebug container were not started in debug mode^^ β¦
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
there are also several browser extensions for xdebug - with these you can start the environment without the β-xβ option and enable debugging via browser. saves some resources when you dont need to debug π
0 -
I am curious why its working with cookies (via browser extension OR postman for example) but not via post/url params ootb (regardless postman or browser) β¦ as far as i understood, the difference between -x and without -x is that the xdebug module is not loaded at all (php -m wont show any xdebug extesion) β¦ but nevertheless it seems to work in the cookie case β¦ another guess: url params are not passed to the corresponding place to trigger a session β¦ but yeah i dont know β¦ very strange to me^^
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
without -x the module should still be loaded but somehow not enabled // listening - but i dont know how it works. I guess it is a default xdebug functionality since this is not spryker specific
0 -
Good to know, at least for me, switching between debug modes is very unpractical β¦
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