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..
Good morning, I have issues with configuring xdebug for devvm. xdebug.ini is set upon Spryker docume
Good morning, I have issues with configuring xdebug for devvm. xdebug.ini is set upon Spryker documentation, xdebug inside devvm installed, mapping set. After starting listening get just: "Waiting for incoming connection with ide key 'PHPSTORM'" Breakpoints are completely ignored. Someone has an idea maybe? Thanks.
Comments
-
Activate xdebug logs via .ini
xdebug.remote_log=/tmp/xdebug.log
0 -
Hi Patrick. Thank you, will try and report
0 -
Added this line to xdebug.ini. Restarted php7.2-fpm. Relaunched xdebug session. Nothing changed.
0 -
Thats how my xdebug.ini looks like: zend_extension=xdebug.so
xdebug.idekey="PHPSTORM"
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_host=10.10.0.68
xdebug.remote_port=9000
xdebug.extended_info = 1
xdebug.remote_log = /tmp/xdebug.logThis is needed to prevent max recursion exeception when Twig templates are very complicated
xdebug.max_nesting_level=1000
0 -
Hey Alexey. You followed this doc https://documentation.spryker.com/docs/debugging-setup right?
Please check the number of connections in ide. If that is not a problem, try switching opcache off
0 -
Hi Evgenia, yes, exactly
0 -
In PHPStorm, go to: Settings (Preferences->Languages & Frameworks)->PHP->Debug -> Under External connections increase Max. simultaneous connections to 2.
So this is correct, right?
0 -
Yes. Here:
0 -
this looks right
0 -
try to debug Yves, set breakpoints in public/Yves/index.php
0 -
Please try opcache then.
0 -
Opcache is disabled. I think I got it!
0 -
I just reset the IP in xdbug to 10.10.0.1 from 10.10.0.68 in the xdebug.ini. Now it seems to work.
0 -
A bit prehistory: I had to set VM_IP in .VM to 10.10.0.68 because of reasons, initially it is 10.10.0.1. So I thought, I have to change to .68 in xdebug.ini as well.
0 -
Which seems to be wrong, in xdebug.ini it still has to be .1, despite the fact, that the vm runs now on .68 Strange, but ok, at least it works now
0 -
Thank you all for your help anyway π
0 -
Iβm glad it works for you π
0 -
you can use
route
command to detect Gateway IP and use it in xdebug conf:vagrant@vm- current git:(master) route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.0.2.2 0.0.0.0 UG 0 0 0 enp0s3 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3 10.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s8
in my case it's 10.0.2.2
0 -
Super! Thanks a lot for the hint, Roman!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 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
- 25 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