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, I got a situation. When I set a breakpoint in file index.php. ```public/Yves/index.php``` After
Hi, I got a situation. When I set a breakpoint in file index.php.
public/Yves/index.php
After 4 seconds it will pop up another request and I will have 2 debug tab in PHPstorm. Does anyone know why this happen?
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
Heyhey,
can you show us your xdebug settings in phpstorm please?0 -
Hi, this is my setting
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
i dont have βforce break when no mapping is providedβ - so the requests to other index.php like zed/index.php are done but without a breakpoint set there should be no stopping
0 -
I don't think it relate to xdebug. Because I got a bug relate to SessionHandlerRedisLocking
src/Spryker/Shared/SessionRedis/Handler/SessionHandlerRedisLocking.php line 97
When I have a request (1) that take too much time to complete. After 4 second, request (2) will be fire. This time, when it go to RedisLocking, because it cannot set a new redis key (since the request (1) doesn't comeplete yet). It will thrown this error.
I find out this behavior after a huge time of debuging...0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
but the debug-tab should normally be related to xdebug settings. so my guess is the bug is independent from your debug-tabs problem
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
did the change of the checkbox help at all?
0 -
Yes, the bug is independent from debug-tabs problem. I just describe it for you to understand easily π
0 -
So the real question should be: How the request is firing 2 times? I guess this is something relate to nginx, right?
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
So do clarify: You have two times Yves/index.php fired by doing one call in the Frontend?
0 -
Yes, that's how i mean
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
In my experience the Session-lock happened when we loaded the page and then did more than one ajax request to yves parallel
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
didnt you ask about this here already? https://sprykercommunity.slack.com/archives/CKJRJM5FG/p1631854471166100
0 -
Because when I try set breakpoint in index.php. At that times, there are no ajax request has been made yet...
So I guess the problem isn't come from RedisLock...0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βοΈ - Guardians (admin)
Hmm.. normally (by default) yves is not calling itself except via ajax. this is strange.
are you 100% sure the second tab in debug is also yves/index.php ? because the scheduler would call zed/index.php in the background and this could explain a second tab. but not yves. except if the routing is messed up
0 -
Yes, I try to copy the $_SERVER from 2 tab and compare. The only different are 3 field below
REQUEST_TIME REQUEST_TIME_FLOAT REMOTE_PORT
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
- 927 Developer Corner
- 785 Spryker Development
- 88 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