Install xDebug 3 and PHP 8 in a Docker Container and Connect it with PHPStorm

preview_player
Показать описание
In this video, I demonstrate how to install xDebug 3 and PHP 8 within a Docker container and connect xDebug and PHPStorm.

SOCIALS
--------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

I must say that I've been trying off an on for years to get a perfect environment of Docker with WordPress, Xdebug, PHPUnit, PHPMyAdmin, mailhog, etc set up and running in PHPStorm. I could never get Xdebug to behave with PHPStorm. I've even tried dumming it down a bit, and still have issues with quirks between Windows and Ubuntu when trying to get xDebug to work. This is the first video I've come across that make the basics work like native xDebug (outside of Docker). I think with this, I can finally get my environment set up the way I want. Thank you!

Nick
Автор

Thank you for this! This is the best and most efficient tutorial I've seen for setting this up, I've read through multiple articles about setting up Docker and xDebug but none have been as straight forward as this!

lolpolethe
Автор

Thank you for the very easy to follow guide. Had no issues at all unlike other examples out there.

sonesay
Автор

You made my day! Very useful, thanks. I've seen a lot of tutorials about setting PHPStorm + XDebug + Docker, but they seem pretty complicated compare to this approach, which works like a charm!

eleftrik
Автор

Thank you, thank you, thank you. You're a legend.

RobRoyAus
Автор

PHP message: Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.d
ocker.internal:9002

Changed the port to 9002 on PHPSTORM and in the code.
I use host.docker.internal for my IP address (on windows)

droneArt
Автор

For the client_host you can use "host.docker.internal", you don't have to hardcode you host IP

nklido