

To set up port forwarding on a Mac or in a UNIX® environment:

To do any type of debugging, you must forward port 9000 from your Adobe Commerce on cloud infrastructure server to your local machine. Map the XDEBUG connection from the server to your local system.
PHPSTORM SETUP XDEBUG PRO
In the Absolute path on the server column, click the Edit icon and add a setting based on the environment.įor all Starter environments and Pro Integration environments, the remote path is /app.įor Pro Staging and Production environments:Ĭhange the Xdebug port to 9000 in the Languages & Frameworks > PHP > Debug > Xdebug > Debug Port panel. In the File/Directory pane, the root of the project for the serverName displays. This value must match the value for the PHP_IDE_CONFIG variable in Debug CLI commands to use CLI for debugging.

See No debug server configured in the PHPStorm documentation. Configure the following settings for the new server configuration. In the Settings panel, expand and locate the Languages & Frameworks > PHP > Servers section.Ĭlick the + to add a server configuration. In your PhpStorm project, open the Settings panel. To configure PhpStorm to work with Xdebug: The PhpStorm IDE must be configured to properly work with Xdebug. When deployed to Starter environments and Pro Integration environments, Xdebug is now available. file and exit the text editor.Īdd, commit, and push the changes to redeploy the environment. In the runtime section, under extensions, add xdebug. To enable Xdebug for your project, add xdebug to the runtime:extensions section of the. See Debug for Pro Staging and Production. This configuration step is not required for Pro Production & Staging environments. You can enable Xdebug directly to all Starter environments and Pro Integration environments. To add Xdebug, Adobe recommends working in a development branch. You can locate the information through the Project Web Interface or your Cloud Onboarding UI. To run and use Xdebug, you need the SSH URL for the environment. For Pro Staging and Production environments, see additional instructions for Xdebug. Clone the code to your local development environment to perform debugging. Remember that all cloud infrastructure environments are read-only. Once configured, you can debug CLI commands, web requests, and code. Xdebug is already available in Pro Staging & Production environments. After editing, push the Git changes across all Starter environments and Pro Integration environments to enable Xdebug. You can configure some settings in the file. To enable Xdebug, you must configure a file in your Git repository, configure your IDE, and set up port forwarding. On Windowsģ.You can configure Xdebug to run in the Cloud Docker environment for local debugging without changing your Adobe Commerce on cloud infrastructure project configuration. You can download Magento DevBox on Magento Tech Resource Download page. For Xdebug 3, set the port to 9003.īefore you run Xdebug, you must create an SSH tunnel to the DevBox container. Set the Xdebug port to 9000(Xdebug 2).Tick the Use path mapping checkbox and add your mappings.– Name: localhost (Same as PHP_IDE_CONFIG in docker-compose.yml) Click Server then Add a new server configuration.
PHPSTORM SETUP XDEBUG MAC OS
PHPSTORM SETUP XDEBUG HOW TO
This tutorial shows you how to debug your code using PhpStorm and Google Chrome browser with Xdebug.
