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..
anyB setup xdebug for their spryker project using vscode on mac osX? Think I'm decently close 1. V
anyB setup xdebug for their spryker project using vscode on mac osX?
Think I'm decently close
- VSCode > Install PHP Debug felixfbecker.php-debug
brew install php
pecl install xdebug
- run
php -m -c
bash ... [Zend Modules] Xdebug Zend OPcache
- setup configuration through vscode with launch,json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: <https://go.microsoft.com/fwlink/?linkid=830387> "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000, "pathMappings": { "/data": "${workspaceRoot}", }, "log": true }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "${fileDirname}", "port": 9000 } ] }
Comments
-
I can set breakpoints but not really sure how to test to make sure they are actually working?
0 -
you can try setting breakpoints in public/Yves(Zed)/index.php f.e. in
Environment::initialize();
or below. And then just access whatever
0 -
"port":9000,
PHP-FPM by default also using port 9000, check it, if yes - change xdebug port to 9001 in xdebug.ini or reconfigure PHP to use unix socket0 -
xdebug 3 uses 9003 as port
0 -
-
xdebug __ __ _ _ \ \ / / | | | | \ V / __| | ___| |__ _ _ __ _ < / _
looks like I'm on 3 already
0 -
so I'm guessing that means I need to use 9003...
0 -
yeah and some other vars has changed too
0 -
xdebug.client_host=host.docker.internal xdebug.client_port=9003 xdebug.mode=develop,debug,coverage xdebug.start_with_request=trigger xdebug.output_dir="/var/www/spryker/releases/current/data/xdebug" xdebug.max_nesting_level=1000
i use this config
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