-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XDebug Debugging Guide #59
Comments
I should have kept the setup steps on Homestead. I could add Homestead setup once you’ve done the Docker one. |
Also need to note debug is required to generate coverage report locally... Here's some notes I have laying around: Homesteadhttps://edcs.me/blog/setting-up-xdebug-with-phpstorm-and-laravel-homestead/
MacOS Mojave
https://xdebug.org/docs/install Install Pear and Pecl :https://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
You should now be at a prompt to configure PEAR.
Autoconf :
Install Headers Files :
Xdebug :
Atom XDebughttps://medium.com/vehikl-news/remote-php-debugging-with-xdebug-atom-and-homestead-a6db258cfa6a Safari : https://itunes.apple.com/ca/app/safari-xdebug-toggle/id1437227804?l=fr&mt=12 Vagrant box:
Make sure it contains :
If any changes :
In Atom, install |
Built in lando support coming in 4.5 simplifies things somewhat, but integrating IDEs with XDebug remains a pain point. I'm of the mind we should try and get some guides together for common IDEs (VS Code, PHPStorm) and OS (since they impact how things are setup in some circumstances). This would be for XDebug v3, which thankfully is easier to get working. |
IDE might be out of scope of UF, unlike our Docker/Lando/Homestead integration. Maybe a link to an external guide could be enough.
Meh, depend on the OS... Looking at you Big Sur... |
This is more of a reminder for me then anything else.
I got XDebug working the other day, and the debugging experience is significantly better compared to unassisted techniques like manually logging to a file. Some setup is required, but its fairly easy for basic stacks. Given some modifications to the
docker-compose.yml
and phpDockerfile
files it should be even easier to setup under Docker.The text was updated successfully, but these errors were encountered: