![]() ![]() On the Extension menu, click Debug to enable. The following steps help you debug web requests. Php -c /etc/platform/USERNAME/ bin/magento cache:clean You can get this information, through the Project Web Interface and your project spreadsheet.įor Starter environments and Pro Integration environments, you can use the following Magento Cloud CLI command to SSH into those environments: ![]() ![]() SSH access to Xdebug environmentsįor initiating debugging, performing setup, and more, you need the SSH commands for accessing the environments. Be aware that this is a configuration change that requires us to redeploy your Staging and Production environments. To complete configuration for Pro plan Staging and Production environments, you must enter a Support ticket to have Xdebug enabled and configured in Staging and Production environments. You are running Putty on the machine on which your private Magento Commerce Cloud SSH keys are located.If an “unable to connect” error displays, verify all of the following: To test the SSH tunnel, click Load, then click Open. In the Saved Sessions field, enter a name for this SSH tunnel. In the Category pane, click Connection > SSH > Tunnels. Hostname (or IP address) field: Enter the SSH URL for your Cloud server.If you have not already done so, download Putty. To set up an SSH tunnel on Windows using Putty: For more information on other applications, see the vendor documentation provided with those applications. You can use other applications such as Cygwin. For this example, we walk through creating an SSH tunnel using Putty. To set up port forwarding (SSH tunneling) on Windows, you must configure your Windows terminal application. 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 Magento Commerce Cloud server to your local machine. You must map the XDEBUG connection from the server to your local system. For 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 Absolute path on the server column, click ( Edit) and add a setting based on the environment: In the File/Directory pane, the root of the project for the serverName displays. This value is used in and must match the value for PHP_IDE_CONFIG variable in Debug CLI commands. The project name is in grey at the top.Ĭonfigure 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: You need to configure PhpStorm to properly work with Xdebug. You should continue configuring your IDE. When deployed to Starter environments and Pro Integration environments, Xdebug is now available. On your local workstation, change to your Cloud project directory. To get started with environment branches: To add Xdebug, we recommend creating a branch to work in and add the files. To configure Xdebug, you need to do the following:įor configuring on Pro plan Staging and Production, you need to enter a ticket for Staging and Production. 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, we include additional instructions for Xdebug. You need to pull code to your local development environment to perform debugging. Remember, all Magento Commerce Cloud environments are read-only. Once configured, you can debug CLI commands, web requests, and code. To push these settings to Pro plan Staging and Production environments, you must enter a ticket. After editing, you can push the Git changes across all Starter environments and Pro Integration environments to enable Xdebug. To set up Xdebug, you need to configure a file in your Git repository, configure your IDE, and set up port forwarding. See /cloud/docker/docker-development-debug.html). You can configure Xdebug to run in the Magento Cloud Docker environment for local debugging without changing your Magento Commerce Cloud project configuration. ![]() See the vendor documentation for those applications for further configuration information. The following explains how to configure Xdebug and PhpStorm to debug in your local environment. Xdebug is an extension for debugging your PHP. Resolve issues with Google Analytics during deployment.Deploy code and migrate static files and data.Prepare to deploy to Staging and Production.Example of managing system-specific settings.Configuration management for store settings.Set up multiple Cloud websites or stores.Prepare your existing Magento Commerce system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |