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..
Alrighty PHPStorm friends π, setting up XDebug Mac osX (version in screen capture) Brave B
Alrighty PHPStorm friends π, setting up XDebug
Mac osX (version in screen capture)
Brave Browser: Version 1.18.78 Chromium: 87.0.4280.141 (Official Build) (x86_64)
PhpStorm 2020.3.2 Build #PS-203.7148.74, built on January 27, 2021 Licensed to PhpStorm Evaluator Expiration date: March 7, 2021 Runtime version: 11.0.9.1+11-b1145.77 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.16 GC: ParNew, ConcurrentMarkSweep Memory: 725M Cores: 16 Registry: run.processes.with.pty=TRUE 1. Xdebug is installed with `pecl install xdebug ```` β― php --version PHP 8.0.1 (cli) (built: Jan 8 2021 12:43:54) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.1, Copyright (c) Zend Technologies with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
- docker sdk is up and running with `docker/sdk up -x
````
Recreating spryker_b2c_dev_frontend_1 ... done
Recreating spryker_b2c_dev_gateway_1 ... done
Restarting spryker_b2c_dev_gateway_1 ... done
Restarting spryker_b2c_dev_frontend_1 ... done
Checking is demo data loaded for EU... 1s [LOADED]
Checking is demo data loaded for US... 1s [LOADED]
Checking jobs are installed... 1s [INSTALLED]
``` - xdebug is enabled in PHPStorm and cli interpretor set (see pic)
- Xdebug helper ext installed in brave and PHPStorm key set (see pic)
- spryker server is setup with
/data
mapped - set a breakpoint all the little lights are green, would expect it to wait at breakpoint
- what step am i missing?
Comments
-
Host should be
spryker.local
instead ofspryker
(screen 4)0 -
hm... tried that I think...
first frame verifies that the url is correct
second is where I would expect the breakpoint to stop0 -
no need to create the
PHP Remote Debug
configuration..PhpStorm introduced zero-configuration debugging0 -
I recommend enabling
Break at the first line in PHP scripts
in theRun
menu and then try debugging from cli first:0 -
docker/sdk console -x -vvv
0 -
oh..when did you set up the project? Xdebug was broken was Friday
0 -
make sure to do:
cd docker git pull cd .. docker/sdk bootstrap deploy.dev.yml
0 -
try to update your docker sdk (cd to the docker directory and run βgit pullβ ). There was an update that introduces support for xdebug 3
0 -
this is zero-configuration debugging huh? π€£ sorry a bit frustrate... disabling sarcasm
disabled PHP remote debug ... although I'm not sure about that one tbh
cd docker git pull > on branch master docker/sdk bootstrap deploy.dev.yml docker/sdk console -x -vvv # Break at the first line in PHP scripts >> enabled
That breaks at
index.php
, cool smoke test β# Break at the first line in PHP scripts >> disabled # Xdebug Helper >> debug # reload page with breakpoint
Debug session was finished without being paused
It may be caused by path mappings misconfiguration or not synchronized local and remote projects. To figure out the problem check path mappings configuration for 'spryker' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu). Do not show again
tried both
spryker
&spryker.local
https://www.jetbrains.com/help/phpstorm/2021.1/zero-configuration-debugging.html
0 -
path mapping looks ok... I think.. ?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 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
- 68 Spryker Safari Questions
- 50 Random