2026 Community Survey results are here! See how the Craft CMS community works. results are live!

Setting up VS Code for DDEV and Xdebug

Let's get VS Code set up so it can listen for the call back from Xdebug and send over the needed information to create a connection between the two.

The first step we need to take is to get VSCode set­up to han­dle Xde­bug debug­ging ses­sions. Let’s install the exten­sion called php-debug, which gives us the inter­face for set­ting up and man­ag­ing Xde­bug con­nec­tions from our DDEV server.

Craft Version
Craft 4, Craft 5
Instructor
Level
Intermediate
Date Published
December 10, 2025