

Once we click “create a launch.json file”, then we’ll get the code editor with that file open. We want to create a debugging configuration just for Xdebug and our server running on MAMP Pro. In VS Code, a launch.json file tells VS Code debugger which debugging configurations it should provide in the debugger. And we want to create a launch.json file. Go to the Run and Debug section of Code. Search for php-debug and choose the one by Felix Becker. In VSCode, go to Extensions (shift-command‑x on the Mac).
How to use mamp pro install#
Let’s install the extension called php-debug, which gives us the interface for setting up and managing Xdebug connections from our DDEV server. The first step we need to take is to get VSCode setup to handle Xdebug debugging sessions. Installing the VS Code php-debug Extension PhpStorm has a zero-configuration feature for Xdebug and with MAMP Pro it seems to work nicely out-of-the-box, so you should be able to accept its settings and then continue on with your setup. Now it will be available to call back to our IDE on port 9000 when it receives a HTTP request. This enables Xdebug so it is running as a PHP extension. Click Save and then choose “Yes” to have the servers restarted to the change is applied.

How to use mamp pro how to#
For this video we are going to learn how to set up Xdebug with PhpStorm running a local server on MAMP Pro.
