DEV Community

Discussion on: Turbocharged PHP Development with Xdebug, Docker & PHPStorm.

Collapse
 
bawa_geek profile image
Lakh Bawa • Edited

I like xdebug and use it pretty often, but don't like docker too much (still have to use it on my Mac for some projects bcoz I don't want to pollute my system), It is super slow, tried both on my macOS and Windows, MAMP on MacOS and Xamp on Windows are best, there are ways to set up Xdebug for both of them

Collapse
 
secondej profile image
James Seconde

MAMP and XAMP will host your app, sure. Docker isn't just about getting it working on your machine. It's defining your applications hosting dependancies as code (or Infrastructure as code) in order to replicate and deploy across cloud services that use the same technology. If you're using Xamp on a Windows server to host your production environment then it's probably best to look into changing that

Collapse
 
bawa_geek profile image
Lakh Bawa • Edited

Yes that true, docker is great at keeping the required tech stuff in sync on all of your devices. And may be great for development
phase, Recently our system admins deployed one of our ERM Software using docker. It is comparatively slower than simple nginx, php installation.

We have to keep in mind that docker is adding lot of abstraction, there is no reason to say it should not be slower than native installations.But it has lot of benefits too (Just like python which is known to be pretty slower than other languages but we still love it for ease of development)