Contents
How to configure PhpStorm to work with Xdebug?
To configure PhpStorm to work with Xdebug: In your PhpStorm project, open the settings panel. Mac OS X —Select PhpStorm > Preferences. Windows/Linux —Select File > Settings. In the Settings panel, expand and locate the Languages & Frameworks > PHP > Servers section.
How do I enable Xdebug in Magento pro?
To enable Xdebug for your project, add xdebug to the runtime:extensions section of the .magento.app.yaml file. You can enable Xdebug directly to all Starter environments and Pro Integration environments. For Pro Staging and Production, you need to update this file and enter a Support ticket to have it enabled.
How to integrate Xdebug with the PHP interpreter?
Integrating Xdebug with the PHP interpreter Open the active php.ini file in the editor: In the Settings/Preferences dialog (Ctrl+Alt+S), click PHP under Languages & Frameworks.
How do I add Xdebug to my project?
To add Xdebug, we recommend creating a branch to work in and add the files. To get started with environment branches: On your local workstation, change to your Cloud project directory. Switch to the Magento file system owner. Log in to your Magento project. List your projects. List environments in the project.
How to change the Xdebug port to 9000?
For all Starter environments and Pro Integration environments, the remote path is /app. For Pro Staging and Production environments: Change the Xdebug port to 9000 in the Languages & Frameworks > PHP > Debug > Xdebug > Debug Port panel. Click Apply. You must map the XDEBUG connection from the server to your local system.
How to create a git branch in Magento?
Git commands only checkout the Git branch. The magento-cloud checkout command checks out the branch and switches to the active environment. You can create a new environment branch using the magento-cloud environment:branch command syntax.